Closed DeFilippis closed 4 years ago
Let's say I have the following function where I pass a dataframe and a variable name:
plot_breaks <- function(data, dv){ ggplot(data = data, aes(x = date, y = dv)) + geom_line() + ggtitle(paste("Time Series of ", dv)) + xlab("Date") }
I want to italicize the string passed as part of the dv variable. How would I do this in ggtext?
dv
This question would be better suited to a general-purpose discussion board, such as stackoverflow.com.
Let's say I have the following function where I pass a dataframe and a variable name:
I want to italicize the string passed as part of the
dv
variable. How would I do this in ggtext?