Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Take the assignment from week three, add at least twice as much data to the sets. Note how this impacted the results from the previous

Take the assignment from week three, add at least twice as much data to the sets. Note how this impacted the results from the previous week. Be sure to have a visualization to show the initial results and the new results. Be sure to explain why the results are different or similar from last week.
This is the data from my Old Assignment and the code in R. Can you please add at least twice as much data to the sets and modify the code for R and create the visualization to show the initial results and the new results.
1. Innovative Visualization:
# Doughnut Chart for Market Share
library(ggplot2)
# Sample Data
market_share_data <- data.frame(
Brand = c("Apple", "Samsung", "Google"),
Market_Share = c(20.1,19.4,12.5)
)
# Create Doughnut Chart
ggplot(market_share_data, aes(x ="", y = Market_Share, fill = Brand))+
geom_bar(width =1, stat = "identity")+
coord_polar("y", start =0)+
theme_void()+
labs(title = "Smartphone Market Share")
2. Useful Visualization:
# Grouped Bar Chart for Customer Satisfaction
library(ggplot2)
# Sample Data
satisfaction_data <- data.frame(
Brand = c("Apple", "Samsung", "Google"),
Customer_Satisfaction = c(8.1,8.0,7.1)
)
# Create Grouped Bar Chart
ggplot(satisfaction_data, aes(x = Brand, y = Customer_Satisfaction, fill = Brand))+
geom_bar(stat = "identity", position = "dodge")+
theme_minimal()+
labs(title = "Customer Satisfaction Ratings",
x = "Brand", y = "Customer Satisfaction")
3. Aesthetic Visualization:
# Combined Plot for Market Share and Customer Satisfaction
library(ggplot2)
# Sample Data
combined_data <- data.frame(
Brand = c("Apple", "Samsung", "Google"),
Market_Share = c(20.1,19.4,12.5),
Customer_Satisfaction = c(8.1,8.0,7.1)
)
# Create Combined Plot
p <- ggplot(combined_data, aes(x = Market_Share, y = Customer_Satisfaction, color = Brand))+
geom_point(size =4)+
geom_text(aes(label = Brand), vjust =-0.5)+
theme_minimal()+
labs(title = "Market Share vs. Customer Satisfaction",
x = "Market Share", y = "Customer Satisfaction")
UUuu

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Datalog Engines In Databases

Authors: Bas Ketsman ,Paraschos Koutris

1st Edition

1638280428, 978-1638280422

More Books

Students also viewed these Databases questions