Transportation is currently the United States’ largest source of greenhouse gas emissions, and transportation-sector electrification is widely recognized as one of the best strategies for significantly reducing these emissions. Invented as early as mid-19th century, electric vehicles (EVs) have become the modern society’s choice to reduce carbon emissions and promote sustainable growth. Recent years have witnessed a rapid rising trend of global EV growth.
In the US, EV registrations reached record market share of 1.8% in 2020. Regionally, the New York City’s share of 2% is driving the Northeast. According to their 2020 Renewables on the Rise report, New York State ranks #2 in the United States for EV sold and available EV charging infrastructure, having more than 53,000 registered EVs on the road and an estimated 1,750 public EV charging stations.
Using New York State as an example, our project aims to analyze the historical trend and current status of the EV market, and predict the future image of EV industry. Specifically, our project consists of 3 parts: first, we analyze the historical trend of the EV industry in New York State, together with the contributing factors. Second, we map the current distribution of EV registration and charging stations in New York State at county level. Finally, we employ sentiment analysis and LDA model analysis to explore customer’s needs and expectation about EV.
In this part, we’ll visualize the historical development of EVs in New York State and analyze the major drivers for the rapid growth. First, We’ll start by providing a historical overview of the EV registration.
xl_data <- "EV-Registration-Tables.xlsx"
EV_time <- read_excel(path=xl_data, sheet=5)
EV_time <- head(EV_time, -1)
EV_time <- mutate(EV_time, Time=paste(`Month Name`, stri_sub(EV_time$Year, 3,4), sep=" '"))
p1 <- EV_time %>%
group_by("Year") %>%
hchart(., "area", hcaes(x = `Time`, y=cumsum(`Total EVs`)))%>%
hc_title(text = "Original EV Registration in New York State (2011-2019)") %>%
hc_subtitle(text = "Source: New York State Energy Research and Development Authority") %>%
hc_yAxis(title = list(text="Cumulative sum of EV"))
p1The above graph shows the cumulative number of EV registration in New York State since 2011. EV registration has grown 100 times between December 2011 to December 2015, and has maintained a steady growth rate up till now. New Yorkers have demonstrated strong interest for EVs over time.
Next, we’ll explore several key driving factors of rapid EV growth in New York State.
The population of New York State has maintained a growing pace during the first half of 2010s. Hence, this creates more demand for auto industry including EV.
p3 <- ggplot(population, aes(x=year, y=cumsum(total_population/1000000), text=paste("Year: ", year,
"<br>cumulative population (Millions): ", cumsum(total_population/1000000)))) + geom_bar(stat="identity",alpha=.6, width=0.8, fill= "#0882c7")+labs(title = "New York State Cumulative Population",subtitle = "Source: U.S. Census Bureau", x="Year",y="Cumulative population (in millions)")+
theme_classic()+
theme(plot.title = element_text(size = 12, face = "bold"),
axis.title.x = element_text(size = 10),
axis.title.y = element_text(size = 10))+
scale_x_continuous(breaks = c(2010, 2011,2012,2013,2014,2015,2016,2017,2018,2019), labels = c("2010", "2011","2012", "2013","2014", "2015", "2016", "2017", "2018", "2019"))
ggplotly(p3, tooltip="text")During the past 3 decades, gasoline and diesel remain as the top 2 sources of greeenhouse emissions under the transportation sector in the U.S.. Hence, New York State has issued a package of policies to accelerate the electrification trend in transportation. For example, New York State is one of the first states in the U.S. to sign a Zero Emission Vehicle Memorandum of Understanding (ZEV MOU) to enact policies that will ensure the deployment of 3.3 million light-duty ZEVs by 2025. Furthermore, under New York State’s Charge NY initiative, electric vehicle buyers can receive a rebate of up to 2,000 for new car purchases or leases, together with a Federal Tax Credit of up to 7,500. In addition, automotive manufacfurers are offering more EV models for consumers to choose, ranging from cost-effective to luxury EV.
Therefore, policy support and the increasing variety of EVs make it a good timing for consumers to purchase EV.
p4 <- ggplot(emission, aes(fill=type, y=inventory, x=as.factor(year), text=paste("Year: ", as.factor(year),
"<br>Emissions inventory: ", inventory,
"<br>Type: ", type)))+
geom_bar(position="dodge", stat="identity",alpha=.6, width=0.8) +
labs(title = "Transportation Sector Greenhouse Emissions Inventory, 1990–2016",subtitle = "Source: New York State Energy Research and Development Authority", x="Year",y="Emissions Inventory (MMtCO2e)")+
theme_bw()+
theme(plot.title = element_text(size = 10, face = "bold"),
axis.title.x = element_text(size = 9),
axis.title.y = element_text(size = 9))Due to the boost of design and battery technology, nowadays automotive manufacturers are offering various kinds of EV to the consumers. It is estimated that the number of battery electric (BEV) and plug-in hybrid (PHEV) passenger vehicle models available to U.S. consumers will increase from 60 to 83 between 2020 and 2022. Meanwhile, numerous manufacturers have publicly signaled their investment plans and commitments to a future of electric vehicle.
In addition, EVs have become more affordable because of dramatic reductions in the cost of batteries. The cost of battery packs has fallen from approximately $1,000/kilowatt-hour (kWh) in 2010 to approximately $156/kWh in 2019. These factors all contribute to the growth of EV sales.
xl_data <- "EV-Registration-Tables.xlsx"
EV_make <- read_excel(path=xl_data, sheet=3)
EV_make <- head(EV_make, -1)
EV_make <- mutate(EV_make, Name=paste(Make, Model))
p5 <- EV_make %>%
hchart("treemap", hcaes(x='Name', value= 'Registrations', color= 'Registrations')) %>%
hc_title(text = "EV make-models in New York State by popularity") %>%
hc_subtitle(text = "Source: New York State Energy Research and Development Authority")
p5The above treemap shows the great variety of EV models in the current U.S. market. There are 66 EV models (PHEV and BEV) by 32 automotive manufacturers available to U.S. consumers. Tesla Model 3 and Toyota Prius Prime enjoy the predominant popularity among U.S. consumer, followed by Tesla Model S, Chevrolet Volt, Ford Fusion Energi, and Tesla Model X.
In addition, U.S consumers prefer domestic car brands (Tesla, Chevrolet, Ford) the most, followed by Japanese brand (Toyota, Honda, and Nissan). Except for the two luxury EV models from Tesla (Model S and Model X), 8 out of the top 10 popular EVs are under $50,000 (MSRP). It suggests that affordability and energy efficiency are the key factors when it comes to EV purchase for New York consumers.
p6 <- ggplot(metric,aes(x = range, y = MSRP/1000, label=type))+
#geom_point(aes(size = cost_per_mile),alpha=.6)+
geom_text(aes(color=factor(brand)), alpha = 0.6, vjust=-0.2, check_overlap=TRUE, size=3.5)+
labs(title = "Features of EV by Make-models", subtitle = "Source: Visual Capitalist", x="Range On a Single Charge(mile)",y="Manufacturer's Suggested Retail Price($k)")+ geom_label()+theme_bw()+
theme(plot.title = element_text(size = 12, face = "bold"),
axis.title.x = element_text(size = 9),
axis.title.y = element_text(size = 9))The above graph offers more detailed make-models information of the current EV market in the U.S.. In terms of affordability, there are six EV models available for under $50,000 (MSRP) with a driving range of up to 250 miles. Specifically, EV models by Japanese carmakers (Nissan, Hyundai) emphasis the most on affordability. All of the 5 EV models by Japanese manufacturers are under $40,000 (MSRP). There will be even more models with a net cost of under $50,000 when current federal, state, and rebates are factored in.
In this part, we’ll map the current distribution of EV registration and charging stations in New York State, to examine whether charging stations would affect EV sales in the NY State. The assumption is that the number of charging stations is positively associated with EV sales. Both EV charging station and registration data are downloaded from New York State Energy Research and Development Authority, and were updated in 2021.
charging <- read.csv("EV_Charging_Stations.csv")
charging1 <-charging %>%
select(City, ZIP, Latitude, Longitude,EV.Connector.Types, Access.Days.Time)
m <- leaflet(charging1) %>%
addTiles('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png')%>%
setView(-75.3167, 43.09287, zoom = 6)
content <- paste("City name:",charging1$City,"<br/>",
"Zipcode:", charging1$ZIP,"<br/>",
"EV Connector Types:",charging1$EV.Connector.Types,"<br/>",
"Access Days Time:", charging1$Access.Days.Time, "<br/>")
m2 <- m %>% addCircles(popup = content)
mclust <- m2 %>% addCircleMarkers(popup=content, clusterOptions = markerClusterOptions())
mclustFrom the above map, the coverage rate of EV charging stations in New York State is pretty high. Charging stations are mostly distributed in the southeast New York. The clusters of EV charging stations are significantly correlated with population density, where bigger cities have more charging stations. New York City has the most charging stations, followed by other large cities such as Albany, Buffalo, Rochester, Yonkers, and Syracuse. Next, let’s further explore the distribution within NYC.
## OGR data source with driver: ESRI Shapefile
## Source: "/Users/christinalv/DataScience_Assignments/Data Visualization/nybb_21a", layer: "nybb"
## with 5 features
## It has 4 fields
charging2 <- charging1 %>%
filter(City %in% c("New York", "Bronx", "Queens", "Brooklyn", "Staten Island", "Long Island City"))%>%
rename(BoroName = City)
charging2$BoroName <- as.character(charging2$BoroName)
charging2$BoroName[charging2$BoroName == "New York"] <- "Manhattan"
charging2$BoroName[charging2$BoroName == "Long Island City"] <- "Queens"
charging3 <- charging2 %>%
select(BoroName) %>%
group_by(BoroName) %>%
add_count(BoroName) %>%
distinct()
nybb$number_of_charging <- charging3$n
p7 <- tm_shape(nybb) + tm_fill("number_of_charging", title="Density of charging stations in NYC", style="pretty") +
tm_borders(alpha=0.5)+tm_style("white")
p7The above map is a heatmap of the distribution of EV charging stations in New York City. There are 326 EV charging stations in Manhattan, followed by 75 in Brooklyn, 21 in Queens, 19 in Staten Island, and 14 in Bronx. New Yorkers don’t need to worry about charging their EVs in Manhattan since the borough has the most charging stations available in the state.
nyzip = read_excel("ny_zipcode.xlsx")
nyzip <- nyzip %>%
select(Zip, Latitude, Longitude)
nyzip$Zip <- as.character(nyzip$Zip)
xl_data <- "EV-Registration-Tables.xlsx"
EV_registration <- read_excel(path=xl_data, sheet=2)
EV_registration <- head(EV_registration, -1)
EV_registration <- EV_registration %>% rename(Zip = `ZIP Code`)
total <- left_join(nyzip, EV_registration, by=("Zip"))
total[is.na(total)] <- 0
mm <- leaflet(total) %>%
addTiles('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png')%>%
setView(-75.3167, 43.09287, zoom = 6)
content2 <- paste("Zipcode:", total$Zip,"<br/>",
"Number of PHEV/EREV:",total$`PHEV/EREV`,"<br/>",
"Number of BEV:", total$BEV, "<br/>",
"Total EVs:", total$`Total EVs`, "<br/>")
m3 <- mm %>% addCircles(popup = content2)
mclust2 <- m3 %>% addCircleMarkers(popup=content2, clusterOptions = markerClusterOptions())
mclust2The above map displays the distribution of EV registration in New York State by zipcode. The data is downloaded from New York State Energy Research and Development Authority and is updated in 2021. EV registration seems to be roughly even distributed throughout NY state at first glance. EVs are mostly distributed in the Southeast New York, which is the same pattern as shown in the map of charging stations.
Comparing the two maps, EV-charging station ratio is pretty high in Northeast and central NY, where more EVs are registrated but with fewer charging stations. By contrast, EV-charging station ratio is lowest in New York City.
The COVID-19 crisis has shifted the EV landscape in multiple areas. Coupled with rapid collapse of trade and employment, consumer purchasing power has decreased; this lowering consumer demand in turn contributed to a significant plunge in oil prices and cheaper gasoline prices, which in hindsight would boost traditional automobile sales. The pandemic also has slowed EV offerings with numerous plants and auto-assembly lines shutting down in 2020. Despite these negative externalities, electric mobility has remained resilient with relatively stable EV sales. From a policy standpoint, the COVID-19 crisis may have prompted positive changes in emission regulation and incentives, creating positive signals for potential EV buyers. For instance, several governments have improved purchase incentives such as tax exemptions and purchase subsidies, as well as expanding low-emission zones with increased public charging infrastructure.
With a thorough understanding of the changing EV industry landscape, we aim to understand how customers’ perceptions towards EVs have evolved in the midst of the pandemic. As a result, our team decided to retrieve EV related twitter posts from April 6th - April 14th, 2021 to answer the following research questions:
Our team hypothesized that scrapping twitter posts could shed light on current EV early adopters’ pain points while reflecting potential EV buyers’ key decision-making criteria upon purchasing an electrical vehicle. As a result, we first created a word cloud with the bigger sized words indicating a higher frequency. From the word cloud, we can identify commonly mentioned words like “new”, “tesla”, “battery”, and “charging.” Other meaningful frequently used terms include “carbon”, “amp”, “cost” and “tax.”
electric_tdm <- TermDocumentMatrix(electric_clean)
electric_m <- as.matrix(electric_tdm)
words <- sort(rowSums(electric_m),decreasing=TRUE)
electric_df <- data.frame(word = names(words),freq=words)library(wordcloud)
set.seed(1234) # for reproducibility
# Create purple_orange
purple_orange <- brewer.pal(10, "PuOr")
# Drop 2 faintest colors
purple_orange <- purple_orange[-(1:2)]
# Create a wordcloud with purple_orange palette
p1 <- wordcloud(words = electric_df$word, freq = electric_df$freq,
max.words = 100, colors = purple_orange) Charging Infrastructure: One of the biggest challenges in the electric mobility business is whether the charging infrastructure can keep up with growing EV demand. Without sufficient access to charging stations, customers must drive extra miles to find the nearest station,thereby undermining their purchase intentions. Ideally, charging stations should be widely available in vast parking lots where GPS could easily locate.
Battery Storage and Longevity: Aside from the up-front EV ownership costs, battery-cost and efficiency improvements are of interest to many potential EV buyers. Most recently, a new topic of battery leasing is emerging: “batteries could be leased separately from the EV and be resold to the stationary storage market for secondary use.” This may attract more potential EV buyers who were intially worried about the degrading capacity of EV batteries this day.
Tesla’s Premium Positioning: Along with the rise of renewable energy, Tesla has pioneered the EV industry with luxury electric cars in the past decade. In fact, one of the key business success factors are their advanced models that move boldly away from traditional automobile vehicles with its spectacular design and unique car user experience. However, the premium branding of the Tesla EVs may have deterred mainstream buyers from purchasing a EV model due to a lack of affordable charging stations.
If the US market in particular wants to achieve mass EV adoptions in the coming years, two types of customers should be considered. On the one hand, some EV enthusiasts may be on the lookout for Tesla’s advancement in autonomous technology and self-driving vehicles. On the other hand, similar to traditional automobile customers, average EV buyers who have varying needs and behavior should be supplied with an equally diverse range of EV model selections, which in turn will prompt more affordable charging stations available in different locations.
p2 <- electric_df %>%
filter(freq > 480) %>%
ggplot(aes(reorder(word, freq), freq, fill = "#0882c7ins")) +
geom_bar(stat = "identity", show.legend = FALSE) +
#geom_text(aes(label=word, x=word, y=180), hjust = 0, color="white") +
geom_text(aes(label=freq, x=word, y=100), hjust = 1, color="white") + xlab(NULL) +
labs(y = "Word Frequency") + coord_flip() +
ggtitle("Most Frequent Terms in Electrical Vehicle Related Tweets") +
theme_classic()
p2As we have identified in the factor analysis, we hypothesize customers hold a relatively positive view towards the electric mobility business for several reasons: from the shifting focus on greenhouse gas emissions, to increasing government investment for public charging stations, to a variety of EV models offered, to the introduction of battery leasing and storage.
To test out this hypothesis, we conducted a sentiment analysis that highlights a relatively positive sentiment pattern over EVs. During the 7-day twitter extraction period, the number of positive tweets outweigh the number of negative tweets; out of the 11,706 posts extracted, the majority of posts are identified as neutral tones.
library(plotly)
category_sent <- ifelse(quanteda_df$tone < 0, "Negative", ifelse(quanteda_df$tone > 0, "Positive", "Neutral"))
totals <- data.frame(table(category_sent))
plot_ly(totals, x = ~category_sent, y = ~Freq, type = 'bar',
marker = list(color = c('grey', 'orange',
'purple'))) %>% layout(title = 'Electric Vehicle Tweets by Sentiment in April 2021')Positive Sentiment: Among the positive tweets, a positive trend is illustrated through a list of high frequency terms such as “like”, “great”, “good”, “love” and “better.” More specifically, “cheaper” and “afford” are also categorized as positive words, implying a narrowing price gap and a wider range of affordable models offered in the general EV market which again aligns with our previous EV model analysis.
Negative Sentiment: The negative sentiment, in hindsight, helps to depict a detailed portrait of what exactly individuals are concerned with. First, the top frequency words such as “limited” and “expansive” demonstrates a strong premium brand image attributable to Tesla’ s luxury model success. However, this clear brand image may have limited the growth of the mainstream EV market since potential customers might shy away from purchasing a EV due to price concerns. Additionally, words like “problem” and “killed” possibly imply potential safety concerns with regards to battery quality and autonomous vehicle accidents. To verify these insights, more text data are required to understand whether concerns vary by region or may have evolved overtime.
plot4<-positive %>%
ggplot(aes(x=reorder(word, freq), y = freq))+
geom_bar(stat="identity")+
#scale_fill_discrete("Sentiment", labels = c("Positive", "Negative"))+
scale_fill_manual("legend", values=c("#00CED1","ff3300")) +
theme_bw()+
theme(legend.position="left", legend.title=element_text(size=14), legend.text=element_text(size=14))+
labs(x="Twitter Words", y="Frequency", title="Positive Sentiment")+
theme(plot.title=element_text(hjust=0.5, size=22))+
theme(axis.text.x=element_text(size=14),axis.text.y=element_text(size=14),axis.title.x=element_text(size=18), axis.title.y= element_text(size=18))+
coord_flip() +
theme_economist()
plot5<-negative %>%
ggplot(aes(x=reorder(word, freq), y = freq))+
geom_bar(stat="identity")+
#scale_fill_discrete("Total duration of EVA")+
scale_fill_manual(values=c("ff3300"))+
theme_bw()+
theme(legend.position="left", legend.title=element_text(size=14), legend.text=element_text(size=14))+
labs(x="Twitter Words", y="Frequency", title="Negative Sentiment")+
theme(plot.title=element_text(hjust=0.5, size=22))+
theme(axis.text.x=element_text(size=14),axis.text.y=element_text(size=14),axis.title.x=element_text(size=18), axis.title.y= element_text(size=18))+
coord_flip() +
theme_economist()
plot9<-ggarrange(plot4, plot5, nrow=1, ncol=2)
plot9While the 7-day Twitter dataset reveals a relatively positive view towards EVs, we are interested in exploring the prospect of electric mobility after the COVID-19 crisis. One potential way is to analyze individuals’ varying emotions: from anger, to anticipation, to joy and etc. Based on the emotion classification graph, we would like to highlight the following trends:
Fear vs Trust: Does perceived benefits of EVs outweigh perceived concerns? Actual product offering, in fact, could differ from consumer perceived perspectives; therefore, the EV business should ensure alignment between its product offering and customer perceptions. In this case, we see a fairly positive signal that consumers seem to have higher “trust” than “fear” towards the electric mobility market. Specifically, “trust” could stem from improvement in autonomous vehicle safety, elevated focus on emissions, and battery quality while “fear” could be explained by the uncertainty around charging infrastructure, battery quality and model accidents that have been discussed in previous analyses.
Anticipation: What opportunities are present in the EV business? As the second highest emotion present in the sentiment analysis, “anticipation” imply ample forward-looking opportunities such as battery leasing, ESG initiatives and further technological breakthrough. Overall, consumers hold a fairly optimistic view towards the future of electric mobility,
Twitter Sentiment Analysis Limitations Since we only have a free twitter account, we could only retrieve 7-day tweets from the API; a larger dataset would be necessary to gain a more holistic understanding of whether consumer preferences have shifted after the COVID-19 crisis. For instance, a comparison between 2019 and 2020 would be recommend. Further analysis could also delve deeper into how electric mobility vary by region or country.