Priya Patel
Priya Patel

Reputation: 31

ggplot shows different graph in R console vs after knitting

enter image description here

Refer to the picture, somehow all the graphs in that code chunk have rendered differently in HTML. Other code chunks also had ggplot graphs that rendered fine?! not sure what would be the reason for this discrepancy. Any advice? Thanks in advance!

Upvotes: 0

Views: 308

Answers (1)

Sirius
Sirius

Reputation: 5419

On the left graph the year_id is a factor or character.

Would have to see the rest of the code to determine why.

Something further up probably changes it or defines it differently.

Upvotes: 1

Related Questions