View source: R/hypoimg_generic.R
hypo_coral_generic | R Documentation |
hypo_coral_generic
adds a generic coral with custom color.
hypo_coral_generic( col = "darkgray", x_in = 0.5, y_in = 0.5, width_in = 1, height_in = 1, coral_side = c("l", "r"), coral_type = c("branch", "table", "brain"), ... )
col |
string (color, optional), defaul = darkgray |
x_in |
horizontal position |
y_in |
vertical position |
width_in |
numeric scalar (optional), width (in graph x axis units) |
height_in |
numeric scalar (optional), width (in graph y axis units) |
coral_side |
string scalar (optional), one of (l, r) - orientation of the coral |
coral_type |
string scalar (optional), one of (branch, table, brain) - coral type |
... |
catch all parameter to allow excess parameter through purrr::pmap |
This function allows the placement of a coral sketch within a ggplot.
It is based on ggplot2::annotation_custom()
and allows to specify
the coloration of the coral.
hypo_hamlet_generic
ggplot()+ hypo_coral_generic(col = clr2[[2]])+ hypo_hamlet_generic(col = clr2[[1]], x = .6, y = .6,, width_in = .3) + hypo_hamlet_generic(col = clr2[[1]], x = .4, y = .3, face = 'r', width_in = .3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.