Read movies csv data into a dataframe
movies <-read.csv(file = 'C:/temp/movies.csv', header = FALSE, sep = ",")
Initial data has generic column names
str(movies)
## 'data.frame': 30 obs. of 3 variables:
## $ V1: Factor w/ 6 levels "Avatar","Black Panther",..: 1 6 3 4 2 5 1 6 3 4 ...
## $ V2: Factor w/ 5 levels "Andy","Anthony",..: 5 5 5 5 5 5 2 2 2 2 ...
## $ V3: int 5 3 3 5 4 5 5 5 4 4 ...
Graphs of Movie Ratings
tmovies<-table(movies$Movie, movies$Rating)
barplot(tmovies, main="Movie Ratings",
xlab="Ratings", col=c("darkblue","red", "yellow", "orange", "black", "green"),
legend = rownames(tmovies), beside = TRUE)

attach(movies)
plot(Movie,Rating, data=movies,
main="Movie Ratings")
