I have this a chart with
&
&
library(dplyr)
library(ggvis)
data.frame(x="& label", y=10) %>%
ggvis(~x, ~y) %>%
layer_bars()
Got it! The regular ampersand won't work but the "full width" version does using C/C++/Java source code unicode format:
title <- "\uFF06"
mtcars %>% ggvis(x = ~wt, y = ~mpg, fill = ~cyl) %>%
layer_points() %>%
add_legend("fill", title = "Cylinders") %>%
add_axis("x",title=title)
http://www.fileformat.info/info/unicode/char/ff06/index.htm
Note that the "regular" ampersand character I was talking about that won't work is unicode \u0026