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.

______________________________________________
R-help@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.

Reply via email to