css | R Documentation |
This function should only be used with an aes()
call in geom_point_svg()
,
or as an argument to a ggsvg
scale object e.g.
scale_svg_fill_discrete(aesthetics = css(...))
css(selector, ..., format = NULL)
selector |
CSS selector as a single character string e.g. "circle .big" |
... |
single named argument of the form |
format |
Advanced. This is a string specifying the formatting for the CSS property value.
This is almost (but not quite) the equivalent of a formatting string
for the Default: NULL is equivalent to "[x]" and will insert just the bare value. For example, if the CSS property required an explicit "px" suffix on the value, the format would be "[x]px" |
a named amed list (with length = 1) where the name is the full name of this CSS aesthetic, and the value is the unevaluated value passed in to the ...
## Not run:
# circle .bit { stroke = XX; }
css("circle .big", stroke = as.factor(cyl))
# circle .bit { stroke = XXpx; }
css("circle .big", stroke = as.factor(cyl), format = "[x]px")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.