Introduction

This presentation explores real estate listings in Buenos Aires using interactive visualizations.

Dataset: Buenos Aires Real Estate (Kaggle)
Created on: 2026-04-25


Load Libraries

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

Load Data

data <- read_csv("buenos-aires-real-estate.csv")

Data Preparation

data_clean <- data %>%
  filter(!is.na(price), !is.na(property_type))

Interactive Plot: Price Distribution

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")
  )

Interactive Plot: Price by Property Type

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")
  )

Insights


Conclusion

This presentation demonstrated how to use Plotly in R Markdown to create interactive visualizations for real estate data.