library(ggplot2)
# Discrete scale
example_data_wide |>
subset(crop %in% c("Apple", "Cherry", "Potato")) |>
ggplot(aes(x = pH, y = Mn_mg.kg, color = crop)) +
geom_point(size = 2.5) +
theme_minimal() +
washi_scale()
# Continuous scale
example_data_wide |>
ggplot(aes(x = `totalC_%`, y = poxC_mg.kg, color = poxC_mg.kg)) +
geom_point(size = 2.5) +
theme_minimal() +
washi_scale("green_gradient", reverse = TRUE, discrete = FALSE)
Run the code above in your browser using DataLab