View source: R/5_plotFunctions.R
AddLabels | R Documentation |
AddLabels
AddLabels(
p,
labels,
hjust = 0.5,
layout = NULL,
textSize = 3.88,
textColor = "black",
...
)
p |
ggplot object |
labels |
Labels to be added to each node |
hjust |
Horizontal adjust for labels. Default is centered. |
layout |
Dataframe with x and y columns. If null, the dataframe from the ggplot object will be reused. |
textSize |
Size for geom_text. Default (=3.88) is from geom_text. |
textColor |
Color for geom_text. Default = black. |
... |
Additional parameters to pass to geom_text |
Returns the ggplot object with labels added
PlotLabels
, PlotNumbers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.