[R] Plotting a polygon with xyplot
markm0705
markm0705 at gmail.com
Tue Oct 4 14:26:20 CEST 2011
Dear R helpers
I would like to plot a string of points as a polygon in xyplot. I'm a bit
lost as to how to get the points plotting in the correct order. I would
also like some hints on how to render or fill the polygon.
Scrpt below and data file attached
Thanks
Markm
library("lattice")
# set size of the window
windows(height=7, width=10,rescale=c("fixed"))
Data_poly<- read.table("111004_Lode_Outlines.csv",header = TRUE,sep = ",",)
xyplot(z~y,
data=Data_poly,
type="l"
) http://r.789695.n4.nabble.com/file/n3870788/111004_Lode_Outlines.csv
111004_Lode_Outlines.csv
--
View this message in context: http://r.789695.n4.nabble.com/Plotting-a-polygon-with-xyplot-tp3870788p3870788.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list