From mschart
to native boxplots
#925
JanMarvin
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been tinkering with
mschart
in the past (see this PR for a second y axis: ardata-fr/mschart#84) and I'm constantly amazed how well it works and I cannot stop recommending it to people. You really really should give it a try, it's a blast, and David Gohels open source work withofficer
,mschart
andflextable
just as selected few is simply amazing.Today I was wondering, if it would be possible to create a boxplot with
mschart
or ... usingwb_add_mschart()
and the answer isoui !
(David is French, and because I'm (still) learning French, and ... forget it). My implementation below is not perfect, partly becausemschart
does not support these chart extensions andopenxlsx2
does not support them either (see #443). But it's a start and basically something that could be used to build upon.The function below creates an
mschart
object in a workbook (this is to make sure that everything is in place) and afterwards the function replaces it with some more or less static content. It only works with a single chart, its not customizable, the style might be different, and obviously it might still fail in many cases.Beta Was this translation helpful? Give feedback.
All reactions