[R] adjusting plot vs font size in a plot

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat May 3 12:05:25 CEST 2008



Karen Liu wrote:
> Hello:
> 
>  
> 
> I am using plot() in rpart, making a decision tree plot. I use plot()
> first, then text() followed, but I think due to the figure vs. text
> size, the bottom of the text always gets cut off. I can only "see" the
> text of the bottom of the tree if I make the font size REALLY small. 
> 
>  
> 
> I think is shouldn't be a specific rpart question, but rather a general
> plotting technique question. 


It seems to be rather rpart specific, because exactly this is documented 
in ?plot.rpart:
use the argument "margin" in plot in order to add some more space for 
the text to the margins within the figure region.

Uwe Ligges



>  
> 
> Thanks,
> 
> Karen
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list