ggplot2 - Chart Aesthetics and Position Adjustments in R

Premium

ggplot2 - Aestheitics

Generally when we talk about aesthetics, we talk about the attributes of a chart such as the color, size and shape. However, in ggplot2, it is not just about how something looks but also about how a variable is mapped it to. In our earlier examples, we mapped the Loan.Quality to Color. As a part of the Aesthetics layer, we map variables to aesthetics. This includes a variety of things such as the x-position, y-position, color, fill and so on. So, when we want to plot Credit Amount on y-axis, we are essentially mapping the variable Credit.Amount to y axis.

Unlock Premium Content

Upgrade your account to access the full article, downloads, and exercises.

You'll get access to:

  • Access complete tutorials and examples
  • Download source code and resources
  • Follow along with practical exercises
  • Get in-depth explanations

Course Downloads

eBook - Data Visualization with R

eBook for Data Visualization with R

PDF
Premium
Upgrade to Pro

Data and R Code

Data and R Code Files for Data Visualization with R

ZIP
Premium
Upgrade to Pro