Hi All,

I'm trying following code and would need help with:

1. Flexibility to move legend inside (top, right, left, etc...). Currently
its overlaying with plot's border.
2. Reducing width/height and making it more compact, with small boxes.

# Requires installing and loading "ggplot2" package
p <- ggplot(mtcars, aes(factor(cyl), mpg))
p + geom_boxplot(aes(fill = factor(am)))
last_plot() + opts(panel.grid.major = theme_blank())
last_plot() + opts(panel.grid.minor = theme_blank())
last_plot() + opts(panel.background = theme_rect())
last_plot() + opts(axis.line = theme_segment())

Can anyone please suggest something? Thanks in advance,
~Kim Jung Hwa

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to