sg_add_marker: Add a vertical marker (with optional label) to streamgraph

Description Usage Arguments

View source: R/marker.r

Description

This is useful for marking/labeling notable events along the streams.

Usage

1
2
3
sg_add_marker(sg, x, label = "", stroke_width = 0.5,
  stroke = "#7f7f7f", space = 5, y = 0, color = "#7f7f7f",
  size = 12, anchor = "start")

Arguments

sg

streamgraph object

x

horizontal position

label

text for the annotation

stroke_width

line width

stroke

line color

space

space (in points) from the marker to place the label

y

vertical position

color

color of the label

size

font size#' @export

anchor

how to justify the label (one of start [left], middle [center] or end [right])


hrbrmstr/streamgraph documentation built on May 17, 2019, 5:14 p.m.