I want to add a title to a ggvis plot. I can\'t find an example anywhere. It\'s simple to do with other R plots, e.g.
library(ggplot2)
library(ggvis)
x <-
Also, to change the font size of the title use this code (adapted from @tonytonov's answer):
add_title <- function(vis, ..., x_lab = "X units", title = "Plot Title")
{
add_axis(vis, "x", title = x_lab) %>%
add_axis("x", orient = "top", ticks = 0, title = title,
properties = axis_props(
axis = list(stroke = "white"),
title = list(fontSize = 32),
labels = list(fontSize = 0)
), ...)
}