Skip to content
Browse files

Change coord_map tests to use geom_polygon

This will make the tests run faster.
  • Loading branch information...
1 parent 992be52 commit 76544a2e4d7df0ea3698225b5d1cc89f9252d7a9 @wch wch committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 visual_test/coord-map.r
View
5 visual_test/coord-map.r
@@ -4,7 +4,8 @@ library(maps)
# World map
world_map <- map_data("world")
-pworld <- ggplot(world_map, aes(x=long, y=lat, group=group)) + geom_path()
+pworld <- ggplot(world_map, aes(x=long, y=lat, group=group)) +
+ geom_polygon()
pworld
@@ -45,7 +46,7 @@ save_vtest("aitoff projection, custom orientation (centered on date line)")
states_map <- map_data("state")
pstate <- ggplot(states_map, aes(x=long, y=lat, group=group))
-pstate + geom_path() + coord_map("mercator")
+pstate + geom_polygon() + coord_map("mercator")
save_vtest("USA map, mercator projection")

0 comments on commit 76544a2

Please sign in to comment.
Something went wrong with that request. Please try again.