This example appeared in the R Graphics Cookbook, or at least that’s
where I found it. It is here so that automated description of graphs by
BrailleR
can be demonstrated.
library(maps) # For map data
east_asia <- map_data("world", region = c("Japan", "China", "North Korea", "South Korea"))
ggplot(east_asia, aes(x = long, y = lat, group = group, fill = region)) +
geom_polygon(colour = "black") +
scale_fill_brewer(palette = "Set2")
This is an untitled chart with no subtitle or caption.
It has x-axis 'long' with labels 70, 90, 110 and 130.
It has y-axis 'lat' with labels 20, 30, 40 and 50.
There is a legend indicating fill is used to show region, with 4 levels:
China shown as very light green fill,
Japan shown as strong yellowish pink fill,
North Korea shown as light purplish blue fill and
South Korea shown as deep purplish pink fill.
The chart is a polygon graph that VI cannot process.
It has colour set to black.
N.B. The coast lines and country borders are plotted using polygons
with numerous sides. BrailleR
cannot process this huge
number of line segments.