Re: [R] adjusting plot vs font size in a plot

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Sat, 03 May 2008 12:05:25 +0200

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.



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. Received on Sat 03 May 2008 - 10:10:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 03 May 2008 - 11:30:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive