Displaying 1 result from an estimated 1 matches for "repfram".
Did you mean:
repframe
2009 Dec 11
1
ggplot: Problem with legend background
...r R-users,
I am preparing graphs for an upcoming article using the different functions
of the ggplot2 package and I've been having problems with the legend
background. It doesn't seem to scale when the text size is increased. Here's
the mandatory reproducible example:
library(ggplot2)
repFrame <- data.frame(A= 1:10, B= rnorm(1:10), groupNum = rep(c("First
group", "Second group"),each=5))
testPlot <- ggplot(repFrame, aes(x=A, y = B, group = groupNum)) +
opts(legend.position=c(0.85,0.3), legend.background =
theme_rect(fill="white"), legend.text=theme_te...