ggplot(stars_graph, aes(x = temp, y = magnitude, color = type)) +geom_point() +labs(title ="Star Temperature & Magnitude by Type",x ="Temperature",y ="Magnitude",color ="Star Type",caption ="Data source: dslabs stars dataset" ) +theme_dark()
#Thoughts-
I chose the stars data set as I was intriuged to interact with astrological data. To create the graph I first used the DYLPR commands to select the variables I needed, which in this case I needed all 4 columns. Then I created a scatter plot comparing star temperature and magnitude , having each color of data represents the type of star.I then added a legend to note the differences between stars and changed the theme to dark so the data contrasted better.