
Robert S. answered 11/22/19
R Developer and Analyst
You may want to try using the `comma()` function from the `scales` library inside the `scale_y_continuous`. Here's an example:
```
# install.packages(scales)
library(tidyverse)
p <- ggplot(diamonds, aes(x=table,
y=price,
color = color)) +
geom_point(position="jitter") +
scale_y_continuous(name="Fluorescent intensity arbitrary units",
label = scales::comma) +
scale_x_discrete(name="Test repeat") +
stat_summary(fun.ymin=median, fun.ymax=median, fun.y=median, geo ="crossbar")
p # y axis should be comma formatted
```
For your reference, I am using R version 3.5.0. Hope this helps!