(Data courtesy of Paul Field.)
1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | col.frac <- rev(RColorBrewer::brewer.pal(9, "RdYlBu"))[c(1:5,7,9)]
phase.breaks <- c(-1e-8, 0.05, 0.1, 0.2 * 1:5)
get.field.heymsfield.2015() %>%
mutate(fracwr = cut(fracwr, phase.breaks)) %>%
ggplot(aes(x = lon, y = lat, fill = fracwr)) +
geom_raster() +
scale_fill_manual(values = col.frac, drop = FALSE) +
geom_world_polygon() +
scale_x_geo() +
scale_y_geo() +
coord_fixed(1, c(-180, 180), c(-90, 90))
get.field.heymsfield.2015() %>%
mutate(frac = cut(frac, phase.breaks)) %>%
ggplot(aes(x = lon, y = lat, fill = frac)) +
geom_raster() +
scale_fill_manual(values = col.frac, drop = FALSE) +
geom_world_polygon() +
scale_x_geo() +
scale_y_geo() +
coord_fixed(1, c(-180, 180), c(-90, 90))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.