I am trying to label a plot with the following label:
\"Some Assay EC50 (uM)\" where the \"u\" is a micro symbol.
I currently have:
assay &l
Using tidy_eval approach you could do
library(rlang) assay <- "Some Assay" plot(0,xlab=expr(paste(!!assay," AC50 (",mu,"M)",sep="")))
expr and !! are included in tidyverse, so you don't actually need to load rlang. I just put it there to be explicit about where they come from.