Hello in the middle of doing my assignment, i really don't have any idea and what can i do for this problem.
To make a ggplot2 graph through iris data, i made a gather
my thing is iris<-gather(iris, key = "Species", value = "value", c("setosa","versicolor","virginica"))
but answer was
Unknown column setosa
Run rlang::last_error() to see where the error occurred.
What's the problem???
Please help me to solve this problem.
Graph has to be like that
Since this is for an assignment I can't give you a complete solution to produce the plot (check our homework policy), but I can help you with the gathering step, instead of specifying the values of the Species column (i.e. c("setosa","versicolor","virginica")), you have to tell gather() function, to exclude the Species column from the gathering, like this: