Add_1_line | R Documentation |
Adding 1-1 line to a ggplot
Add_1_line(
type = "dashed",
color = "black",
size = 0.6,
add_zero_line = FALSE,
...
)
type |
linetype |
color |
line color |
size |
line size |
add_zero_line |
logical, add 0-0 lines |
... |
Other arguments passed to |
This is a dummy workaround of the original geom_abline
## Not run:
library(ggplot2)
ggplot(mtcars, aes(mpg, drat)) +
expand_limits(x = c(.0001, 0.0001),
y = c(.0001, 0.0001)) +
Add_1_line(add_zero_line = T) +
geom_point()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.