search for: plot_troops

Displaying 1 result from an estimated 1 matches for "plot_troops".

2009 Nov 04
0
Weird errors with R CMD check/ggplot2 in examples: how to debug?
...n. However, they fail under R CMD check, and I can neither diagnose or understand the error (shown below). How can I debug this? 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,...