#creation of the summatry table df_summary<- df %>%group_by(room_type) %>%summarize(total_listings =n())#creation of the treemapggplot(df_summary,aes(area = total_listings,fill = room_type,label = room_type)) +geom_treemap() +geom_treemap_text(colour ="black",place ="centre",grow =TRUE) +scale_fill_manual(values =c("red","yellow","green","blue")) +labs(title ="Distribution of Airbnb Listings by Room Type in Washington DC",place="center",caption ="Source: Airbnb_DC_25 Dataset" )
Ignoring unknown labels:
• place : "center"
Description of my plot:
This visualization is a treemap that shows the distribution of Airbnb listings by room type in Washington, DC. The size of each rectangle represents the number of listings in each room type category, allowing us to easily compare their proportions. From the plot, we can see that entire homes/apartments make up the largest share of Airbnb listings, occupying most of the treemap area. A key insight from this visualization is that entire homes are significantly more common than private, hotel, or shared rooms in the Washington, DC Airbnb market.