mtq <- mf_get_mtq()
# Choosing a theme by name:
mf_theme("base")
mf_map(mtq)
mf_title()
# Specifying some values directly:
mf_theme(title_banner = TRUE)
mf_map(mtq)
mf_title()
# Using a mix of the above:
mf_theme("sol_dark", title_tab = TRUE, title_font = 1)
mf_map(mtq)
mf_title()
# Specifying a list with theme values:
theme <- list(
mar = c(1, 1, 3, 1),
title_tab = FALSE,
title_pos = "left",
title_inner = FALSE,
title_line = 2,
title_cex = 1.5,
title_font = 2,
title_banner = FALSE,
frame = "figure",
frame_lwd = 1,
frame_lty = 1,
foreground = "#fbfbfb",
background = "grey75",
highlight = "#0f5027",
pal_quali = "Dark 3",
pal_seq = "Greens"
)
mf_theme(theme)
mf_map(mtq, "MED", "choro")
mf_title()
# Obtaining a list of parameters for the current theme:
current_theme <- mf_theme()
# Use default theme:
mf_theme(NULL)
# or
mf_theme("base")
Run the code above in your browser using DataLab