## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----------------------------------------------------------------------------- library(plotcli) mtcars$cf = as.character(mtcars$cyl) mtcars_ggplot <- ggplot(mtcars, aes(x = mpg, y = wt)) + geom_point() + geom_smooth(method = "lm", color = "red") + labs(title = "Mtcars Dataset with Regression Line", x = "Miles per Gallon", y = "Weight") pp = ggplotcli(mtcars_ggplot, braille = FALSE) pp$print_plot()