Hello everyone,

I have some difficulties on controling the margin of a plot.
For example, the following code from the help of maptools:

library(maptools)
xx <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1], 
IDvar="FIPSNO", proj4string=CRS("+proj=longlat +ellps=clrk66"))
plot(xx, border="blue", axes=TRUE, las=1)

There is a lot of white margin on the bottom and top of the plot and I 
want to get rid of it. I used option "usr", but it does not make any 
change.

plot(xx, border="blue", axes=TRUE, las=1,usr=c(-85,-75,33,39))
par(usr=c(-85,-75,33,39))
plot(xx,border="blue",axes=T,las=1)

Option "ylim" does not work either.

Anyone has any idea how to do it?

Thanks a lot.

Best,

Shengde Liang

______________________________________________
[email protected] 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.

Reply via email to