Last answered:

25 Mar 2022

Posted on:

21 Mar 2022

0

Resolved: why not fill instead of color and group? (5:05)

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)
Instructor
Posted on:

25 Mar 2022

0

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

Submit an answer