
上QQ阅读APP看书,第一时间看更新
Plotting Two Continuous Variables
In this chapter, we will cover the following recipes:
- Plotting a basic scatterplot
- Hacking ggvis add_axis() function to operate as a title function
- Plotting a scatterplot with shapes and colors
- Plotting a shape reference palette for ggplot2
- Dealing with over-plotting, reducing points
- Dealing with over-plotting, jittering points
- Dealing with over-plotting, alpha blending
- Rug the margins using geom_rug()
- Adding marginal histograms using ggExtra
- Drawing marginal histogram using gridExtra
- Crafting marginal plots with plotly
- Adding regression lines
- Adding quantile regression lines
- Drawing publish-quality scatterplots