I'm trying to create a boxplot in R that shows the number of organic visitors to a website (data pulled from analytics API).
Each
The data is fine, but when I go to create the boxplot, it appears empty with no data.
The data frame is called 'myData
'
Here is the code:
names(myData)
[1] "date" "visits"
> myData$yearmo <- year(myData$date)*100 + month(myData$date)
>
> boxplot(visits ~ yearmo, data=myData, main="Organic Visits",
+ xlab="Year-Month", ylab="Visits", col= "orange", ylim=c(0,.8), yaxt="n")
>
Here is the boxplot I'm getting: