Hi everyone, I'm new to R and ggplot2 so I'm not 100% sure what to expect but I certainly feel like something is off. Can someone confirm if what I'm seeing is unusual and if so, what I can do about it?
This is the first plot:
ggplot(diamonds, aes(carat,price)) + geom_point() + geom_smooth()
Look at that blue line - is it supposed to be that pixely and jagged?
This second one is:
ggplot(diamonds, aes(carat,price)) + stat_binhex(bins = 10)
Firstly, the little lines between the bins are missing but also look at the edges, again, very jagged.
I can add colour="gray" to it but the lines will remain jagged.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# plot carat and price
myplot <- ggplot(data = diamonds, aes(x = carat, y = price)) + geom_point() + geom_smooth()
# save plot
ggsave(myplot, file = "myplot.png", dpi = 700) # adjust dpi accordingly