Code
library(tidyverse)
# pak::pak("haleyjeppson/ggmosaic")
library(ggmosaic)
library(praise)This week’s data is IKEA sofas and armchairs and the Swedish places they are named after. Ingvar Kamprad, IKEA’s founder, had dyslexia and found names easier to remember than number codes. Since December 2020, new products get Swedish names only, and sofas and armchairs are named after places in Sweden. KLIPPAN is a town in Skåne and EKTORP a suburb of Stockholm, but many are hamlets of a few houses.
One table lists every sofa and armchair on ikea.com in 50 countries on 28 September 2026, with prices in local currency and US dollars. The other has the places in Sweden that share each name, from OpenStreetMap.
Sources: product listings from ikea.com; places from OpenStreetMap via Nominatim, © OpenStreetMap contributors (ODbL); exchange rates from the fawazahmed0 currency API (CC0).
Thank you to Georgios Karamanis for curating this week’s dataset.
library(tidyverse)
# pak::pak("haleyjeppson/ggmosaic")
library(ggmosaic)
library(praise)ikea_places <- readr::read_csv(
'https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2026/2026-10-27/ikea_places.csv'
)
ikea_seating <- readr::read_csv(
'https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2026/2026-10-27/ikea_seating.csv'
)
ikea <- ikea_seating |>
select(category, name) |>
distinct() |>
inner_join(ikea_places, by = "name")Products at Ikea are names after places in Sweden. The places are broken down by the type of place (e.g., lake, hamlet, village, etc.). For each type of place, we can see the proportional breakdown of armchairs vs sofas. The height of the bar indicates the number of products at Ikea that ae names after the given type of place.
ikea |>
count(place_type, category) |>
ggplot() +
geom_mosaic(aes(x = product(place_type), fill = category, weight = n)) +
theme_minimal() +
theme(
legend.position = "none",
#axis.text.x = element_text(angle = 270, vjust = 0.5, hjust=0),
axis.text.y = element_text(size = 7),
axis.title.x = element_blank(),
axis.title.y = element_blank()
) +
coord_flip()praise()[1] "You are fantabulous!"
ikea |>
select(place_type, category) |>
table() category
place_type armchairs sofas
administrative 2 1
archaeological_site 0 1
bay 1 0
cape 1 0
city 1 2
farm 1 2
forest 0 1
hamlet 51 42
island 1 0
islet 6 1
isolated_dwelling 23 20
lake 5 3
locality 0 2
municipality 1 0
neighbourhood 1 2
peak 1 4
residential 1 0
statistical 0 1
suburb 1 2
town 4 3
village 11 6
wetland 0 1
ikea_seating |>
ggplot(aes(x = price_usd, y = country, color = category)) +
geom_point()jattebo <- ikea_seating |>
filter(product_name == "JÄTTEBO")
jattebo |>
ggplot(aes(x = price_usd, fill = country)) +
geom_histogram()ikea_seating |>
filter(
country %in% c("mx", "ae", "us", "se", "th", "de", "au", "jp", "kr")
) |>
group_by(country, product_name) |>
summarize(count = n()) |>
ggplot(aes(x = count)) +
geom_histogram() +
facet_grid(country ~ 1)countries <- ikea_seating |> distinct(country)
countries# A tibble: 50 × 1
country
<chr>
1 ae
2 at
3 au
4 be
5 bh
6 ca
7 ch
8 cl
9 co
10 cz
# ℹ 40 more rows