Data Visualization

ggplot2: Guides - Axes

Introduction This is the twelfth post in the series Elegant Data Visualization with ggplot2. In the previous post, we learnt to build histograms. Now that we have learnt to build different plots, let us look at different ways to modify the axis. Along the way, we will also explore the scale_*() family of functions. Modify X and Y axis title labels limits breaks position In this module, we will learn how to modify the X and Y axis using the following functions:

ggplot2 - Axis and Plot Labels

Introduction This is the fifth post in the series Elegant Data Visualization with ggplot2. In the previous post, we learnt about aesthetics. In this post, we will learn to: add title and subtitle to the plot modify axis labels modify axis range remove axis format axis Basic Plot Let us start with a simple scatter plot. We will continue to use the mtcars data set and examine the relationship between displacement and miles per gallon using geom_point().