if (FALSE) {
vegc <- read_io(filename = "./vegc.bin.json")
# Plot first 9 years starting from 1901 as a raster plot
plot(vegc)
# Plot raster with mean over the whole time series
plot(vegc,
aggregate = list(time = mean))
# Plot only year 2010 as a raster
plot(vegc,
subset = list(time = "2010"))
# Plot first 10 time steps as global mean time series. Note: Aggregation
# across cells is not area-weighted.
plot(vegc,
subset = list(time = 1:10),
aggregate = list(cell = mean))
# Plot time series for cells with LPJmL index 27410 - 27415 (C indices start
# at 0 in contrast to R indices starting at 1).
plot(vegc,
subset = list(cell = 27411:27416))
}
Run the code above in your browser using DataLab