Hi All
I am gettting the below error
Error in ggplpot(data2, aes(x = Company.Advertising, y = Brand.Revenue, :
could not find function "ggplpot"
q<-P + geom_point()
Error: object 'P' not found
My source code is as below
To read the input workfile
data<-read.csv("C:/Users/server/Desktop/R/Casestudy3/dataF.csv")
data
#Another way to read the workfile
setwd("C:/Users/server/Desktop/R/Casestudy3")
data1<-read.csv("dataF.csv")
install.packages("ggplot2")
install.packages("colorspace")
data2<-filter(data,Industry=="Technology")
To set up the map
library("ggplot2")
library("dplyr")
install.packages("colorspace")
P<- ggplpot(data2,aes(x=Company.Advertising,y=Brand.Revenue,size=Brand.Value,colour=Brand))
q<-P + geom_point()
q+xlab("Company Advertising in Billions") + ylab("Brand Revenues in billions") +
scale_size(range = c(2,4),breaks =c(30,60,100), name ="Brand Values (Billions)")
- geom_text(aes(label=Brand),hjust=0.5,vjust=1)+guides(color=FALSE)+theme_light()
+theme(legend.key=element_rect(fill ="light blue", color ="black"))
Could you please help me with it