Add_1_line: Adding 1-1 line to a ggplot

View source: R/add_1-1_line.R

Add_1_lineR Documentation

Adding 1-1 line to a ggplot

Description

Adding 1-1 line to a ggplot

Usage

Add_1_line(
  type = "dashed",
  color = "black",
  size = 0.6,
  add_zero_line = FALSE,
  ...
)

Arguments

type

linetype

color

line color

size

line size

add_zero_line

logical, add 0-0 lines

...

Other arguments passed to geom_abline

Details

This is a dummy workaround of the original geom_abline

Examples

## 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)


atsyplenkov/atslib documentation built on April 21, 2024, 11:59 p.m.