[rkward-devel] Changes to plot_options plugin, and a few related glitches
meik michalke
meik.michalke at uni-duesseldorf.de
Sun Sep 30 20:01:51 UTC 2012
hi,
am Mittwoch 26 September 2012, 20:12:49 schrieb Thomas Friedrichsmeier:
> Working on my backlog of TODO items, I have added support for customizing
> the size of figure margins to the (embedded) plot_options plugin. Since
> figure margins need to be set *before* actually creating the plot, this
> means plugins embedding plot_options have to fetch *three* snippets of code
> from the plot_options plugin: Code to add before the plotting command(s),
> code to add in the main plotting command, and code to add after the
> plotting command(s).
ok, to make this easier for people using the rkwarddev package, it now
(0.05-8) has a new function rk.paste.JS.graph(). it takes care of three
things:
- everything is placed between graph.on() and graph.off() (and those in
"if(full)" conditions)
- everything is inside a try() call
- if global plot options are specified, everything is placed between their
corresponding "preprocess" and "calculate" statements, so you only need
to place the options inside the actual plot call yourself
i have also added a function called rk.plotOptions() to make the embedding of
plot options much easier. try the examples in
?rkwarddev::rk.plotOptions
?rkwarddev::rk.paste.JS.graph
or examine the rkwarddev scripts in the external MDS plugin, which also uses
rk.plotOptions() to enable text color selection.
> - For the 2PL plot, some options, esp on the axes-tab do not seem to have an
> effect. Options without an effect should be disabled / hidden.
interesting, i cannot confirm this: i tried the 2PL plot with activated
preview, and all options did have an effect here.
> - Many plots have an argument named "type". This clashes with the option for
> points/lines of the same name. Probably the corresponding tab should be
> disabled.
done.
viele grüße :: m.eik
--
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2282 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20120930/3df51ba3/attachment.p7s>
More information about the Rkward-devel
mailing list