Displaying 1 result from an estimated 1 matches for "plot_both".
2009 Nov 04
0
Weird errors with R CMD check/ggplot2 in examples: how to debug?
...his? i.e., Is there something I can add to the example
to help track down the cause of these errors?
Has anyone experienced anything similar?
\examples{
require(ggplot2)
plot_troops <- ggplot(Minard.troops, aes(long, lat)) +
geom_path(aes(size = survivors, colour = direction, group = group))
plot_both <- plot_troops +
geom_text(aes(label = city), size = 4, data = Minard.cities)
plot_polished <- plot_both +
scale_size(to = c(1, 12),
breaks = c(1, 2, 3) * 10^5, labels = comma(c(1, 2, 3) * 10^5)) +
scale_colour_manual(values = c("grey50","red")) +
xlab(NULL) +
yla...