In this post we will learn under what circumstances we will see a ggplot2 error that says something like "replacement has 9 rows, data has 8" in addition to other text that is not easily understood. We will also see an easy fix to such a difficult sounding error. Let us … [Read more...] about ggplot2 error: how to fix error in dataframe