I want to calculate number of movies in each category in base . Sample data is below :-
head(movies);
Rating Runtime Movieid
R 50 1
PG 100 2
R 20 3
G 10 4
PG 16 5
plot(x=movies$V1,xlab="Rating",ylab=" of movies")
I get the graph using the above command.But i want to know how R plots the graph automatically on Y axis?