Can you please help me with Grammar of Graphics exercise 2? I am having trouble creating same kind of graph? Does it require geom_rect to do so? I have a long vector of TRUE/FALSE categorical variables and want to colour depending on that but geom_ribbon fails miserably.
Can you please help me with Grammar of Graphics exercise 2? I am having trouble creating same kind of graph? Does it require geom_rect to do so? I have a long vector of TRUE/FALSE categorical variables and want to colour depending on that but geom_ribbon fails miserably.