Closed tbates closed 1 year ago
visreg() should use strip.names to label levels in the legend of an overlay=TRUE plot This works in lattice output, but strip.names is ignored when gg=TRUE
visreg()
strip.names
overlay=TRUE
gg=TRUE
Getting the legend re-labelled is complex post-hoc for the user...
m1 = lm(Ozone ~ Solar.R + Wind * Temp, data=airquality) visreg(m1, "Temp", by="Wind", overlay=TRUE, strip.names=c("Low C", "Mid C", "High C"))
gg=TRUE version ignores strip.names
lattice version uses the strip.names:
Thanks for pointing this out and providing a reproducible example! This is fixed now in version 2.7.0.4.
visreg()
should usestrip.names
to label levels in the legend of anoverlay=TRUE
plot This works in lattice output, butstrip.names
is ignored whengg=TRUE
Getting the legend re-labelled is complex post-hoc for the user...
gg=TRUE version ignores
strip.names
lattice version uses the
strip.names
: