标签: r ggplot2
我想通过连接数据点来创建一个带ggplot2的多边形。但是,它没有给我一个多边形。我的代码有什么问题?
Longitude=c(0,30,30,0,0) Latitude=c(0,0,30,30,0) data.frame(lon=Longitude,lat=Latitude)%>% ggplot(aes(x=lon,y=lat))+geom_line()