geom_point_svg: Use SVG images as glyphs for points

View source: R/ggsvg.R

geom_point_svgR Documentation

Use SVG images as glyphs for points

Description

Aesthetics

svg

SVG as a character string

svg_width,svg_height

Specify rendered width and/or height. If only one of these values is specified, then the other will be scaled to keep he aspect ratio. If neither value is specified (the default) then dimensions will be taken from the SVG itself. This value could be used to increase the resolution of the SVG so it does not appear blurry once rendered to an element in the plot e.g. svg_width = 1000

hjust,vjust

The justification of the SVG's bounding rectangle relative to its (x,y) position. Default value of 0.5 mean to centre the SVG at the specified location. Standard values for these variables are in the range [0,1]

x_abs,y_abs

Absolute positioning within the panel. Default: NULL means that the standard x,y positioning is to be used. Standard values for these variables are in the range [0,1]

Usage

geom_point_svg(
  mapping = NULL,
  ...,
  data = NULL,
  stat = "identity",
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  defaults = list()
)

Arguments

mapping, data, stat, position, ..., na.rm, show.legend, inherit.aes

see documentation for ggplot2::geom_point()

defaults

Advanced option. A named list of default values for new aesthetics. In general this is not necessary when using css() aesthetics, as a default value will be determined based upon the CSS property e.g. stroke property will have a default value of "black"

Set 'options(GGSVG_DEBUG = TRUE)' for some verbose debugging which will cause ggsvg to output (to the console) the final SVG for each and every element in the plot.

Value

ggplot2 layer object


coolbutuseless/ggsvg documentation built on Sept. 14, 2024, 5:48 p.m.