Box plot & Scatterplot not showing on R markdown

Screen Link:

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

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:


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)

1 Like