[R] Force printing of excluded axis annotations

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Feb 8 20:34:22 CET 2012



On 08.02.2012 17:43, Justin Fincher wrote:
> Howdy,
>     This should be simple, but I am finding that I can't find a simple
> solution.  I have a plot to which I am manually adding the annotations
> to the y-axis with this command:
>
> axis(2, c(-4,-3,-2,-1,0,1,2,3,4,5,6,7),labels=c(-4,-3,-2,-1,0,1,2,3,4,5,6,7),cex.axis=8)
>
> The issue is that, apparently, R doesn't think that the -1 can fit,
> even though there is most certainly enough space.  Is there a way to
> force R to print all the annotations I give it, regardless of
> proximity or to reduce the space it believes it needs? Thank you.


If you really want to plot all and R thinks it dos not fit although you 
believe it does, you can plot in two sets (first even, then odd numbers, 
for example).

Uwe Ligges


> - Fincher
>
> ______________________________________________
> 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