imsibaja / eds221-day8-comp

Day 8 Computational Sessions - Data Viz with ggplot2
0 stars 0 forks source link

what the H!! why is it not plotting? #2

Open imsibaja opened 2 months ago

imsibaja commented 2 months ago

help me agian

my_data <- data.frame(length1 = c(58,61,89,58,93,86,107,131,103,117),
           weight = c(1.75,1.95,5.6,2.15,6.9,5.9,10.5,20.6,9.55,13)) 

ggplot(my_data, aes(x = length1, y = weight)) +
         geom_point(aes(shape = 12), color = "purple") +
         theme_minimal() +
         labs(x = "Cutthroat trout length (cm)",
              y = "Weight (g)")
imsibaja commented 2 months ago

dude... understand functions and their arguments... seriously..

my_data <- data.frame(length1 = c(58,61,89,58,93,86,107,131,103,117),
           weight = c(1.75,1.95,5.6,2.15,6.9,5.9,10.5,20.6,9.55,13)) 

ggplot(my_data, aes(x = length1, y = weight)) +
         geom_point(shape = 12, color = "purple") +
         theme_minimal() +
         labs(x = "Cutthroat trout length (cm)",
              y = "Weight (g)")