2015-10-05 94 views
0

我使用的R-3.2.2和最新版本Rstudio的为2015年10月5日没有县ggplot县轮廓绘制

library("ggplot2") 
library("maps") 

counties <- map_data("county") 

qplot(long, lat, data = counties, geom = "polygon", group = group, fill = group) 

当我在RStudio情节窗口中查看,我不能看到县的白色轮廓。 当我将这幅图保存为PDF时,我可以看到(非常隐隐)县的轮廓。

当我运行的代码在我的MacBook相同的路线(而不是我的电脑上),县行显示完美

任何想法,我看不出县概括?

回答

-1

添加col参数的情节:

qplot(long, lat, data = counties, geom = "polygon", group = group, 
     fill = group, col = I('white')) 

enter image description here

+0

这完美地工作。谢谢! – user5411627