Added a border around the plot using theme_bw and used size + color in order to change the legend
plot1 <-ggplot(genres, aes(x = genres, y = year, size = rating, color = rating)) +geom_point(alpha =0.7) +scale_color_gradient(low ="green", high ="hotpink") +labs(title ="Rating of Movies Based on the Year and Genre",x ="Movie Genre",y ="Year of Release (1970-1990)") +theme_bw() plot1
For this graph, I used the movielens dataset. The dataset is a compiled list of movies that have multiple different genres. The release year of the movies range from 1902 to 2016. For my graph, I focused on movies that were released between 1970 and 1990. I decided to only include genres such as adventure|sci-fi, comedy, crime|drama, drama, and thriller. I chose these genres simply because they interested me the most. I began by filtering the dataset to only show me movies released between 1970 and 1990 and then I filtered it again to show me my choice of genres from that time range. Then I created a graph that shows the ratings of each of these movies that fit the genre and year criteria. I made the legend reflect the ratings; the more pink a point is, the better the rating and the greener it is, the worse the rating was. I changed the size of the points in order to reflect the rating as well (it made it easier to see the difference in ratings). Based on the graph, we can see that there was a lack of adventure|sci-fi movies that came out between 1970 and 1990. The movies with the highest ratings are generally focused in the drama and comedy categories.