hypo_hamlet_generic adds a generic hamlet with custom color.
hypo_hamlet_generic( col = "darkgray", x_in = 0.5, y_in = 0.5, width_in = 1, height_in = 1, face = c("l", "r"), ... )
| 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) |
| face | string scalar (optional), one of l,r side the hamlet is facing |
| ... | catch all parameter to allow excess parameter through purrr::pmap |
This function allows the placement of a generic hamlet within a ggplot.
It is based on ggplot2::annotation_custom() and allows to specify
the coloration of the generic hamlet.
ggplot()+ hypo_hamlet_generic(col = clr2[[1]])