# NOT RUN {
dev.new(width = 7, height = 2)
AddColorKey(is.categorical = FALSE, breaks = 0:10, scientific = TRUE,
explanation = "Example description for data variables in meters.")
AddColorKey(is.categorical = FALSE, breaks = 0:10, at = pretty(0:10))
AddColorKey(is.categorical = FALSE, breaks = seq(0.5, 10.5, by = 1), at = 1:10)
AddColorKey(is.categorical = TRUE, labels = LETTERS[1:5])
AddColorKey(is.categorical = TRUE, col = terrain.colors(5))
dev.off()
# }
Run the code above in your browser using DataLab