View source: R/add_line_unity.R
adds a unity line to plotly object
1 2 3 4 5 6 7 8 | add_line_unity(
p,
data = NULL,
color = "black",
width = 0.5,
dash = "solid",
opacity = 0.5
)
|
p |
a plotly object |
data |
the data object used to draw the plotly object. By default, the function will look for the data object within the plotly object. |
color |
color of line |
width |
width of line |
dash |
dashed or solid? |
opacity |
opacity of line. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.