You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the delay.
The variable fillLength is created during the call of .parseUpdateAestheticProperty when input argument is "fill"
To prevent potential copy/paste issues of very similar lines of code, most of the functions from aaa-utilities.R directly output R code as character strings (which are then transformed into expressions to be evaluated as actual R code using parse(text) and eval(expression).
Below shows the expression returned when the function .parseUpdateAestheticProperty is called with the arguments "fill" and ribbons.
When the expression is wrapped by eval(), this code is evaluated and
Creates the variable fillVariable, column name in the data linked to the fill property
Creates the variable fillLength, number of unique values for the fill property (used for selecting the right number of colors)
Update the fill properties of the plot plotObject
Remove the legend if no mapping was actually defined
Note that changing "fill" by any other property name such as "color" or "alpha" would directly create an evaluated R code with all the property names changed to "color" or "alpha"
Sorry for the delay.
The variable
fillLength
is created during the call of.parseUpdateAestheticProperty
when input argument is"fill"
To prevent potential copy/paste issues of very similar lines of code, most of the functions from
aaa-utilities.R
directly output R code as character strings (which are then transformed into expressions to be evaluated as actual R code usingparse(text)
andeval(expression)
.Below shows the expression returned when the function
.parseUpdateAestheticProperty
is called with the arguments "fill" andribbons
.When the expression is wrapped by
eval()
, this code is evaluated andfillVariable
, column name in the data linked to thefill
propertyfillLength
, number of unique values for thefill
property (used for selecting the right number of colors)fill
properties of the plotplotObject
Note that changing
"fill"
by any other property name such as"color"
or"alpha"
would directly create an evaluated R code with all the property names changed to"color"
or"alpha"
Originally posted by @pchelle in #338 (comment)
The text was updated successfully, but these errors were encountered: