This is what I got after updating R and R studio. I had no idea that having the older versions of both was a problem for reprex.
Thanks for pointing it out since I had no clue.
Is the code below now suitable for posting? If I had a data frame should it be posted in the same manner?
``` r
#CODE THAT RUN GRAPH WITH NO LEGEND AND FAR X GOes TO X AXIS
ggplot() + geom_density(aes(x=sim), colour="red", linetype="longdash",data=data) +
geom_density(aes(x=dv,col=sim), colour="blue", linetype="solid",data=data) +
scale_y_continuous(limits = c(0,NA),expand=c(0,0)) +
scale_x_continuous(limits = c(0,13),expand=c(0,0)) +
xlab("Concerta Peak1 Cmax Distribution") +
ylab("Density")
#> Error in ggplot(): could not find function "ggplot"
```
Created on 2018-10-01 by the reprex package (v0.2.1)