In this para :
We can generate the same bar chart using data from the frequency distribution table. In the code snippet below, we see three differences in the code that result in the same chart:
- Data is sourced from the
exp_by_pos
frequency distribution table. - The
Freq
variable from the frequency distribution table is called for the y-axis.
*** Thestat
, or statistical method, is changed from the defaultcount
toidentity
. This is because theexp_by_pos
dataframe contains summary data, soggplot2
only needs to use the “identity” of the data rather than counting the frequencies first.**
Kindly elaborate on *The stat
, or statistical method, is changed from the default count
to identity
. This is because the exp_by_pos
dataframe contains summary data, so ggplot2
only needs to use the “identity” of the data rather than counting the frequencies first.. I didn’t understand this.