Skip to content

Plot frame border to start at zero?

1 message · Steven McKinney

#
It doesn't appear to be plotted starting at less than zero.

S language plots were designed from the beginning to have
a little extra space around the data points so none of your
data points get lost or obscured because they overstrike the
borders.  Thus the surrounding box is drawn about 5% outside
of the data range in the X and Y axis directions, to avoid
any data point overstrike.

You can specify the x and y axis data ranges with the
xlim and ylim arguments if you want complete control
of the data range.  It can be done, but you will have to 
work hard to get the graph to do bad things like print 
over your data!  (See the various plot control arguments
in e.g. help("par") ).
Steven McKinney, Ph.D.

Statistician
Molecular Oncology and Breast Cancer Program
British Columbia Cancer Research Centre

email: smckinney -at-  bccrc +dot+ ca
tel: 604-675-8000 x7561

BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C.
V5Z 1L3

Canada