duke_forest | R Documentation |
Data on houses that were recently sold in the Duke Forest neighborhood of Durham, NC in November 2020.
duke_forest
A data frame with 98 rows and 13 variables.
Address of house.
Sale price, in USD.
Number of bedrooms.
Number of bathrooms.
Area of home, in square feet.
Type of home (all are Single Family).
Year the home was built.
Heating sytem.
Cooling system (other
or central
).
Type of parking available and number of parking spaces.
Area of the entire property, in acres.
If the home belongs to an Home Owners Association, the associted fee (NA
otherwise).
URL of the listing.
Data were collected from Zillow in November 2020.
library(ggplot2)
# Number of bedrooms and price
ggplot(duke_forest, aes(x = as.factor(bed), y = price)) +
geom_boxplot() +
labs(
x = "Number of bedrooms",
y = "Sale price (USD)",
title = "Homes for sale in Duke Forest, Durham, NC",
subtitle = "Data are from November 2020"
)
# Area and price
ggplot(duke_forest, aes(x = area, y = price)) +
geom_point() +
labs(
x = "Area (square feet)",
y = "Sale price (USD)",
title = "Homes for sale in Duke Forest, Durham, NC",
subtitle = "Data are from November 2020"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.