This presentation explores real estate listings in Buenos Aires using interactive visualizations.
Dataset: Buenos Aires Real Estate (Kaggle)
Created on: 2026-04-25
knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE)
suppressPackageStartupMessages({
library(plotly)
library(dplyr)
library(readr)
})
## Warning: package 'plotly' was built under R version 4.5.3
## Warning: package 'ggplot2' was built under R version 4.5.2
## Warning: package 'dplyr' was built under R version 4.5.3
## Warning: package 'readr' was built under R version 4.5.3
data <- read_csv("buenos-aires-real-estate.csv")
data_clean <- data %>%
filter(!is.na(price), !is.na(property_type))
plot_ly(
data = data_clean,
x = ~price,
type = "histogram",
nbinsx = 50
) %>%
layout(
title = "Distribution of Property Prices",
xaxis = list(title = "Price"),
yaxis = list(title = "Count")
)
plot_ly(
data = data_clean,
x = ~property_type,
y = ~price,
type = "box",
color = ~property_type
) %>%
layout(
title = "Price by Property Type",
xaxis = list(title = "Property Type"),
yaxis = list(title = "Price")
)
This presentation demonstrated how to use Plotly in R Markdown to create interactive visualizations for real estate data.