# Basics:
mark(labels = "This is a test.", new_plot = "blank") # create a new blank plot
mark(labels = "More testing here...", y = .45, col_bg = pal_pinky[[2]]) # add to plot
# Example:
# (a) Mark text on an existing plot:
plot(x = 0, y = 0, type = "n", xlim = c(0, 1), ylim = c(0, 1), xlab = "", ylab = "")
mark(x = 0, y = .8, labels = "Mark (on an existing plot)") # uses existing plot
# (b) Mark text on a new plot:
mark(x = 0, y = .8, labels = "Mark (and create a new plot)",
new_plot = "slide") # starts a new plot
# (c) More text and decorations:
mark(x = 0, y = c(.60, .50),
labels = c("Highlighting text is simple", "and effective"),
cex = 1.5, col_bg = c(pal_seeblau[[2]], pal_seeblau[[1]]))
mark(labels = c("It is also flexible", "but to be handled with care"),
x = .4, y = .3, y_layout = "flush", cex = 1.2,
col = c("white", "black"), col_bg = c(pal_seeblau[[5]], "gold"))
Run the code above in your browser using DataLab