search for: ncylinders

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

Did you mean: cylinders
2007 Jun 29
1
Print grid/ggplot to a metafile
...a workaround by using windows(); savePlot, but it only works in interactive mode, not when called with something like (Windows) rterm --no-save < printit.r Any ideas? Dieter #------ library(ggplot2) win.metafile(file="bar.emf") mtcars$cyls = factor(mtcars$cyl, labels=c("four\ncylinders","six\ncylinders","eight\ncylinders")) ggplot(mtcars, aes(x=cyls)) + geom_bar() #grid.gedit("xaxis::labels::label.text",just=c("center","center")) dev.off()