Skip to content

R Stacked Histogram

3 messages · Jason Rupert, Hadley Wickham

#
Hi Jason,
Yes, that's a really stupid bug that I accidentally introduced in the
latest version.  You can fix it with:

qplot(mpg, wt, data = mtcars, main = "My title") + opts(plot.title =
theme_text(vjust = 0, size = 16))

or by adding a new line to the end of the title:

qplot(mpg, wt, data = mtcars, main = "My title\n")

Regards,

Hadley
1 day later
1 day later
#
Hi Jason,

You can do:

qplot(mpg, wt, data = mtcars, colour = factor(cyl)) +
opts(legend.position = c(0.5, 0.5))

Hadley
On Thu, Jan 8, 2009 at 3:04 PM, Jason Rupert <jasonkrupert at yahoo.com> wrote: