insert.leem | R Documentation |
Method of insert function
## S3 method for class 'leem'
insert(
x,
type = "mean",
lty = 1,
lcol = "black",
tcol = lcol,
acol = lcol,
parrow = 0.5,
larrow = 0.6,
ptext = 0.06,
side = "right",
lwd = 2,
lwdarrow = lwd,
...
)
x |
R object (list) of class leem. Use |
type |
Type of measure of position. The default is |
lty |
Line type. The default is |
lcol |
Vertical line color type. The default is |
tcol |
Text color type. The default is |
acol |
Arrow color type. The default is |
parrow |
Text and arrow height. The default is |
larrow |
Text and arrow length. The default is |
ptext |
Distance between lines of text. The default is |
side |
Side to insert the text. The default is |
lwd |
numeric argument. The vertical line width. The default is |
lwdarrow |
numeric argument. The arrow width. The default is |
... |
further arguments passed to or from other methods. |
No return value. This function adds elements to an existing plot.
# Example 1
library(leem)
set.seed(10)
rnorm(36, 100, 50) |>
new_leem(variable = "continuous") |>
tabfreq() |>
hist() |>
insert(
lcol = "black",
tcol = "purple",
acol = "brown",
parrow = 0.6,
larrow = 0.6,
ptext = 0.4,
side = "left",
lwd = 2,
lwdarrow = 4
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.