I'm trying to create a very simple graph in R using ggplot2 and Plot.ly. I've got a dataset with about 10 pieces of information. I've read a few tutorials but all of R is lost on me.
This is what I've got, can anyone tell me what I'm doing wrong?
install.packages("ggplot2")
Library("ggplot2")
setwd("c:/Users/charlieecho/documents")
Name data set <- read.(“ATTACKS”, 1)
qplot(LMS, data= ATTACKS, geom=c("scattered"), main="Number of attacks")
And...
install.packages("plotly")
library(plotly)
setwd("c:/Users/charlieecho/documents")
Name data set <- read.(“ATTACKS”, 1)
plotly graph <- plot_ly(ATTACKS, x = ~number of attacks, type = "box")
I know some people use the aes style to create a graph but that doesn't make any sense to me either.
I appreciate any help.