# Load data
data("dengue_MS")
# Scatter (two numeric variables) - No grouping
plot_bivariate(dengue_MS,
var = c("pop_density", "tmin"),
palette = "#d04a2d")
# Scatter (two numeric variables) - Grouping in the same graph
plot_bivariate(dengue_MS,
var = c("pop_density", "tmin"),
var_label = c("Pop. density", "Min temp."),
area = "micro_code")
# Scatter (two numeric variables) - Grouping in facets
plot_bivariate(dengue_MS,
var = c("pop_density", "tmin"),
var_label = c("Pop. density", "Min temp."),
area = "micro_code", facet = TRUE,
free_x_scale = TRUE)
# Boxplots (one numeric, one categorical) - No grouping
plot_bivariate(dengue_MS,
var = c("pop_density", "biome_name"),
var_label = c("Pop. density", "Min temp."),
palette = "royalblue")
# Boxplots (one numeric, one categorical) - Grouping
plot_bivariate(dengue_MS,
var = c("biome_name", "tmin"),
area = "meso_code",
palette = "Accent")
Run the code above in your browser using DataLab