marker | R Documentation |
This set of functions makes it easy to define shapes, and it similar to points.
marker(x, ...)
## S3 method for class 'grob'
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
...
)
## S3 method for class 'gList'
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
...
)
## S3 method for class 'ggplot'
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
...
)
## S3 method for class 'raster'
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
...
)
## S3 method for class ''magick-image''
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
...
)
## S3 method for class 'formula'
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
...
)
## S3 method for class 'character'
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
r = 0,
n = 5,
ratio = 0.618,
...
)
## S3 method for class 'list'
marker(
x,
width = 1,
height = 1,
width_unit = "cm",
height_unit = width_unit,
r = 0,
n = 5,
ratio = 0.618,
...
)
## S3 method for class 'marker'
marker(x, ...)
x |
any R object can be converted to marker.
|
... |
ignore. |
width, height |
width or height of marker. |
width_unit, height_unit |
units of width or height. |
r |
only be used for ellipse marker. |
n, ratio |
only be used for star marker. |
a marker object.
Hou Yun
marker("square")
marker(c("square", "circle"))
m <- marker(c("square", "circle", "star", "heart"))
m[1:3]
rep_len(m, 10)
library(grid)
marker(circleGrob())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.