2) need to add paste to make it render properly
2) need to add paste to make it render properly
library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
geom_point(size = 2) +
annotate(geom = 'text',
x = 4,
y = 32.75,
size = 6,
label = expression(paste('Concentration of', ~CO[2]))) +
theme_minimal()
library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
geom_point(size = 2) +
annotate(geom = 'text',
x = 4,
y = 32.75,
size = 6,
label = expression(paste('Concentration of', ~CO[2]))) +
theme_minimal()
github.com/tidyverse/gg...
github.com/tidyverse/gg...
! Problem while setting up geom aesthetics.
ℹ Error occurred in the 2nd layer.
Caused by error in `list_sizes()`:
! `x$label` must be a vector, not an expression vector.
this is ggplot2 4.0.0
! Problem while setting up geom aesthetics.
ℹ Error occurred in the 2nd layer.
Caused by error in `list_sizes()`:
! `x$label` must be a vector, not an expression vector.
this is ggplot2 4.0.0
www.npr.org/2025/08/21/n....
www.npr.org/2025/08/21/n....