mtq <- mf_get_mtq()
# Choosing a theme by name:
mf_theme("default")
mf_map(mtq)
mf_title()
# Specifying some values directly:
mf_theme(bg = "darkslategrey", fg = "lightgrey")
mf_map(mtq)
mf_title()
# Using a mix of the above:
mf_theme("brutal", fg = "lightgreen", pos = "center", font = 2, tab = FALSE)
mf_map(mtq)
mf_title()
# Specifying a list with theme values:
theme <- mf_theme("default")
theme$mar <- c(1, 1, 3, 1)
theme$line <- 2
theme$cex <- 1.5
mf_theme(theme)
mf_map(mtq)
mf_title()
# or
theme <- list(
bg = "green",
fg = "red",
mar = c(2, 2, 2, 2),
tab = TRUE,
pos = "center",
inner = TRUE,
line = 2,
cex = 1.5,
font = 3
)
mf_theme(theme)
mf_map(mtq)
mf_title()
# Obtaining a list of parameters for the current theme:
mf_theme()
# Removing the current theme:
mf_theme(NULL)
# or
mf_theme("default")
Run the code above in your browser using DataLab