[R] Special characters in cell names
w||||@mwdun|@p @end|ng |rom gm@||@com
Wed Jun 23 21:04:26 CEST 2021
Use backquotes, `X/Y`, to specify a name, not double quotes.
On Wed, Jun 23, 2021 at 11:58 AM Mahmood Naderan <mahmood.nt using gmail.com>
> I have a column in my data file which is "X/Y". With '/' I want to
> emphasize that values are the ratio of X over Y.
> Problem is that in the following command for a violin plot, I am not able
> to specify that '/' even with double quotes.
> p <- ggplot(mydata, aes(x=W, y="X/Y")) + geom_violin(trim=FALSE)
> However, if I change that column to "Y" and use
> p <- ggplot(mydata, aes(x=W, y=Y)) + geom_violin(trim=FALSE)
> Then the plot will be correctly shown.
> Any ideas for that?
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help