In general, the user will not want or need to inspect the output of this funciton. Instead it is always used within an 'aes()' call for geom_point_svg(), or one of the scale functions in ggsvg of the form scale_svg_*().

css(selector, ..., format = NULL)

Arguments

selector

CSS selector as a single character string e.g. "circle .big"

...

single named argument of the form css_property = value. The value will remain unevaluated for passing into ggplot2::aes()

format

a string specifying the formatting for the CSS property value. 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"

Value

length-1 named list where the name is the full name of this CSS aesthetic, and the value is the unevaluated value passed in to the ...

Examples

if (FALSE) {
# 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")
}