pheymanss / chronicle

R package to create R Markdown reports with a sequential syntax inspired by ggplot
29 stars 4 forks source link

add line graph #27

Closed pheymanss closed 4 years ago

pheymanss commented 4 years ago

Should be able to plot several lines with the same x axis, like:

add_lines(dt = iris, x = 'Sepal.Width', y = c('Sepal.Length', ' Petal.Length', ' Petal.Width'))

perhaps using y %>% purrr::map(~geom_line(aes_string(.x))) %>% purrr::reduce(+)