Resolved: why not fill instead of color and group? (5:05)
in
The Complete Data Visualization Course with Python, R, Tableau, and Excel
/
Line Chart - R - How to Create a Line Chart
Hi!
I just wondered why didn't we use the 'fill' parameter instead of the color and group over here? I remember we did it when we were defining the aesthetics for the stacked area chart in R.
1 answers ( 1 marked as helpful)
Hi Anas,
here we're creating a line chart that's why we're using color, instead of fill. Fill controls the "fill" of the figure, like the inside of the area chart areas or the inside of scatter points on a scatter plot. In case of a line chart you can use the colour argument instead.
Hope this helps!
Best,
365 Eli