The dot in the Cars.Listings?
in
The Complete Data Visualization Course with Python, R, Tableau, and Excel
/
Bar Chart - R - How to Create a Bar Chart
Hi!
I was just wondering why do we have to include a dot between the two words in the Cars.Listings in the aes parameter of the ggplot object? Why can't we simply say Cars Listings (with a space)?
1 answers ( 0 marked as helpful)
Hi Anas,
that's the name of the variable as it appears in the R environment, that's why I add a dot in the variable. You could try with a space and if it doesn't raise an error you're free to use this option as well.
Best,
365 Eli