I am working with a script that looks something like this:
testplot <- plot(fit, uniform=TRUE,
main="Classification Tree for MRC")
text(fit, use.n=TRUE, all=TRUE, cex=.8)
post(fit, file = "tree.ps",
title = "Classification Tree")
I'm not that familiar with how R handles images/plotting, but is there any way to generate a png or pdf file of the image instead of postscript format? I see in some tutorials that the demo images are in PNG's, but they all only show the post method of saving the plot. Do I have to convert the image outside of the script?
?pdf
and?png
– Nishanthplot
ortext
allocates margin space? There's one part of the the text in thepng
version of my plot that now gets cut off on the right side... – rhae66?par
for margin allocation. Lookmar
andoma
andxpd
. Can also include "\n" for line-breaks/word-wrap. – IRTFM