Population of Lego Sets for Sale between Jan. 1, 2018 and Sept. 11, 2020.
Source:R/data-lego_population.R
lego_population.Rd
Data about Lego Sets for sale. Based on JSDSE article by Anna Peterson and Laura Ziegler Data from their article was scrapped from multiple sources including brickset.com
Format
A data frame with 1304 rows and 14 variables.
- item_number
Set Item number
- set_name
Name of the set.
- theme
Set theme either Duplo, City or Friends.
- pieces
Number of pieces in the set.
- price
Recommended retail price from LEGO.
- amazon_price
Price of the set at Amazon.
- year
Year that it was produced.
- ages
LEGO's recommended ages of children for the set
- pages
Pages in the instruction booklet.
- minifigures
Number of LEGO people in the data, if unknown "NA" was recorded.
- packaging
Type of packaging: bag, box, etc.
- weight
Weight of the set of LEGOS in pounds and kilograms.
- unique_pieces
Number of pieces classified as unique in the instruction manual.
- size
Size of the lego pieces: Large if safe for small children and Small for older children.
Source
BrickInstructions.com. (n.d.). Retrieved February 2, 2021 from
Brickset. (n.d.). BRICKSET: Your LEGO® set guide. Retrieved February 2, 2021 from
Examples
library(ggplot2)
library(dplyr)
small <- filter(lego_population, theme == "Friends" | theme == "City" )
ggplot(small, aes(pieces, amazon_price))+
geom_point(alpha = 0.3) +
labs(
x= "Pieces in the Set",
y = "Amazon Price",
title = "Amazon Price vs # of Pieces in Lego Sets"
)
#> Warning: Removed 28 rows containing missing values (`geom_point()`).