library(treemap)
library(ggplot2)
library(treemapify)
DATA VISUALIZATION LA1 Smartphone Market Share Report – May 2025
Create a tree map showing market share of smartphone brands in Q1 2025 using real or simulated data.
Step1: load required librarires
Step 2: load the dataset or .csv file
<- read.csv("C:/Users/GEYA/OneDrive/Desktop/college/Data visual/vendor-ww-monthly-202501-202503.csv")
data head(data)
Date Apple Samsung Xiaomi Unknown Oppo Vivo Realme Motorola Huawei Infinix
1 2025-01 27.32 23.37 11.95 5.69 5.86 5.91 4.12 3.25 2.68 1.91
2 2025-02 27.78 23.58 11.39 6.56 5.68 5.35 3.72 3.04 2.84 1.91
3 2025-03 27.63 23.15 11.20 7.06 5.74 5.53 3.71 3.04 2.74 1.84
Tecno Google OnePlus Honor Itel Nokia LG ZTE Sony Lenovo Asus Nothing BBK
1 1.82 1.38 1.44 1.00 0.56 0.25 0.23 0.21 0.18 0.17 0.11 0.10 0.06
2 1.95 1.57 1.27 1.06 0.62 0.26 0.23 0.19 0.18 0.17 0.10 0.09 0.07
3 1.91 1.67 1.31 1.15 0.63 0.24 0.21 0.18 0.18 0.16 0.10 0.10 0.07
TCL Lava T.Mobile Alcatel Vsmart HTC Reeder Meizu Hisense Unitel
1 0.06 0.04 0.03 0.02 0.02 0.03 0.02 0.01 0.01 0.01
2 0.06 0.04 0.03 0.03 0.02 0.02 0.01 0.02 0.01 0.01
3 0.06 0.04 0.05 0.03 0.03 0.02 0.02 0.02 0.02 0.01
General.Mobile Sharp Other
1 0.01 0.01 0.13
2 0.01 0.01 0.13
3 0.01 0.01 0.14
Step 3 : data preparation
<- data.frame(
data Brand = c("Apple", "Samsung", "Xiaomi", "Unknown", "Oppo", "Vivo", "Realme", "Motorol", "Huawei", "Infinix",
"Tecno", "Google", "OnePlus", "Honor", "Itel", "Nokia", "LG", "ZTE", "Sony", "Lenovo", "Acer",
"Nothing", "BBK", "TCL", "Lava", "T-Mobile", "Alcatel", "Vsmart", "HTC", "iReader", "Meizu",
"Hisense", "Unkel", "General", "Sharp", "Other"),
Share = c(27.63, 23.15, 11.2, 7.06, 5.14, 5.53, 3.11, 3.04, 2.17, 1.84,
1.31, 1.67, 1.31, 1.15, 0.63, 0.26, 0.24, 0.21, 0.18, 0.16, 0.10,
0.10, 0.07, 0.06, 0.04, 0.05, 0.03, 0.03, 0.02, 0.02, 0.02,
0.02, 0.01, 0.01, 0.01, 0.14) # 36 values now
) data
Brand Share
1 Apple 27.63
2 Samsung 23.15
3 Xiaomi 11.20
4 Unknown 7.06
5 Oppo 5.14
6 Vivo 5.53
7 Realme 3.11
8 Motorol 3.04
9 Huawei 2.17
10 Infinix 1.84
11 Tecno 1.31
12 Google 1.67
13 OnePlus 1.31
14 Honor 1.15
15 Itel 0.63
16 Nokia 0.26
17 LG 0.24
18 ZTE 0.21
19 Sony 0.18
20 Lenovo 0.16
21 Acer 0.10
22 Nothing 0.10
23 BBK 0.07
24 TCL 0.06
25 Lava 0.04
26 T-Mobile 0.05
27 Alcatel 0.03
28 Vsmart 0.03
29 HTC 0.02
30 iReader 0.02
31 Meizu 0.02
32 Hisense 0.02
33 Unkel 0.01
34 General 0.01
35 Sharp 0.01
36 Other 0.14
Step 4: Treemap Visualization
(i)Using “treemap” library
treemap(data,
index = "Brand",
vSize = "Share",
type = "index",
title = "Mobile Market Share - May 2025",
palette = "Set3",
border.col = "white")
(ii)Using “ggplot2” and “treemapify”
ggplot(data, aes(area = Share, fill = Brand)) +
geom_treemap(linetype = "dashed", colour = "black") +
geom_treemap_text(aes(label = Brand),
colour = "white",
place = "center",
grow = TRUE) +
labs(title = "Smartphone Market Share – May 2025") +
theme(legend.position = "none")
Insights and Interpretation
Here are key insights from the data:
Apple is the clear market leader with 27.63% of the global market
Samsung follows closely with 23.15%, keeping the competition at the high-end tight.
Xiaomi holds 11.2%, showing its strength in affordable smartphones.
Unknown brands account for 7.06%, suggesting a sizable presence of unbranded or untracked manufacturers.
Oppo, Vivo, Realme, and Motorola each contribute between 3%–5.5%, indicating strong regional plays.
Over 20 brands have less than 1% share, showing high fragmentation in the lower tiers.
Brands like Google, OnePlus, and Huawei maintain dedicated user bases but face challenges scaling globally.
Conclusion
The smartphone market in May 2025 is heavily dominated by Apple and Samsung, together owning more than 50% of the market. The treemap helps visualize the disparity between these dominant players and the long tail of smaller brands.
This pattern highlights strong brand loyalty, market segmentation, and room for innovation among niche competitors. The data emphasizes the competitive pressure on mid-tier and low-share brands to differentiate themselves.