ggplot(price_of_room, aes(x = room_type, y = avg_price, fill = room_type)) +geom_bar(stat ="identity") +labs(title ="Average airbnb price by room type in DC",x ="Room Type",y ="Average Price",caption ="Source: Airbnb_DC_25 Dataset" ) +theme_dark()
p.s( I wanted to do boxplot but couldn’t due to error so I just did bar. I know you wanted us to do this early in case we ran into a erroer but I thought it would be easier if I just switch to a different graph.)
Essay
The bar graph I created above is showing the average Airbnb prices by room type in Washington DC. Each bar represents a different room type with there being 4 bars on the graph. The first bar is the “entire home” being on the left and then going to “hotel room”, “private room” and lastly “shared room”. The y-axis tells you the average price while the x-axis shows you the room type. Looking at this graph, I could tell that private room cost the least out of everything. And shared room cost the most out of everything almost hitting 1500. This does make sense with shared room costing the most because they are spliting the cost between the people paying for the shared room. And hotel room price does seem right because you are just staying at the hotel for a few days.