chrisadolph / tile-simcf

R packages for visualizing statistical models, with tools for counterfactual simulation
faculty.washington.edu/cadolph/software
13 stars 10 forks source link

alpha transparency in tile objects should be more selective #23

Open chrisadolph opened 12 years ago

chrisadolph commented 12 years ago

Currently, many trace objects have a default alpha=0.8, to allow traces below the top-layer trace to shine through somewhat. This can lead to undesirable behavior if there is only one trace, however, as it leads to less than totally black lineplots. Perhaps tile should be smarted about this, and set alpha to 0.8 if there are lines layered beneath the present line, and to 1.0 otherwise.

And for some primitive traces, alpha should probably be 1.0 by default, instead of the present 0.8.

The alpha for polygons, and for polyalpha (the shaded confidence interval in lineplots) should stay at 0.8, regardless.