Box plot & Scatterplot not showing on R markdown

Screen Link:
https://app.dataquest.io/m/277/guided-project%3A-analyzing-forest-fire-data/5/why-do-forest-fires-occur-when-they-do

What I expected to happen:
Is there something wrong with my R markdown? I can’t seem to make the boxplot/ scatterplot appear!

What actually happened:

Replace this line with the output/error
2 Likes

Hello @lauratangwt,

I think it is working. You have assigned the charts to the variables month_boxplot and day_boxplot. You need to display like this to see the result:

month_boxplot
day_boxplot

You can display them on separate chunks and run to see results.

And I think you may need to change these:

x_var_month <- names(forest_fires)[3]
x_var_day <- names(forest_fires)[4]
y_var <- names(forest_fires)[5:12]

It should be names(forest_fires), not names(create_boxplots)
Cheers!

1 Like