get_colour_palette | R Documentation |
Returns nice colour palette based on the number of unique DEPTH values
get_colour_palette(dat.tidy)
dat.tidy |
Data to be plotted, in tidy format, as returned by the
function |
If there are 6 or less unique values of DEPTH
, returns a
discrete viridis colour palette with 6 colours (Option D). If there are more
than 6 unique values of DEPTH
, returns a discrete colour palette with
the number of colours equal to the number of unique values of DEPTH
.
Returns a vector of hex colours from the viridis palette
Danielle Dempsey
Other plot:
get_xaxis_breaks()
,
plot_variables_at_depth()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.