[R] Missing axis labels

Fisher Dennis fisher at plessthan.com
Fri May 1 16:10:42 CEST 2015


R 3.2.0
OS X
This is a general question, not specific to OS X.  

Colleagues

Often, one or more values on an axis will be omitted, presumably in order to prevent overlap.  However, there are situations where I would like to override that omission.  Sample code:
	pdf("labels.pdf", width=3, height=3)
	plot(0:100, 0:100)
	graphics.off()
Here, 100 is omitted from the x-axis and 20, 60, and 100 from the y-axis.  

Is there is automated way to detect which values will be omitted (i.e., without seeing the graphic)?  

If so, I see two options:
	1.  change the font size
	2.  force the entry, e.g., axis(1, 100, at=100)

Dennis


Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com



More information about the R-help mailing list