lego_population | R Documentation |
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
lego_population
A data frame with 1304 rows and 14 variables.
Set Item number
Name of the set.
Set theme either Duplo, City or Friends.
Number of pieces in the set.
Recommended retail price from LEGO.
Year that it was produced.
LEGO's recommended ages of children for the set
Pages in the instruction booklet.
Number of LEGO people in the data, if unknown "NA" was recorded.
Type of packaging: bag, box, etc.
Weight of the set of LEGOS in pounds and kilograms.
Number of pieces classified as unique in the instruction manual.
Size of the lego pieces: Large if safe for small children and Small for older children.
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" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.