r - Increasing all font sizes in ggvis -


i'm looking ggvis equivalent of ggplot2 function call: theme(text=element_text(size=20))

let's take simple graph made ggvis:

mtcars %>%    add_rownames() %>%    ggvis(~mpg, ~disp, fill = ~vs) %>%    layer_text(text := ~rowname) 

enter image description here

there font sizes axis titles, tick labels, text layer, legend title, , legend tick labels. in svg, of these font sizes set in element:

here, example, 1 of labels in legend:

<text x="3" y="36" text-anchor="start" dy=".9em" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: sans-serif; fill: #000000; opacity: 1;">0.0</text> 

notice font-size: 10px;. prevents me modifying font size via css in page svg embedded.

is there global way of stripping fontsizes elements, can use css? or there way increase fontsizes via ggvis?


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -