I am trying to plot a graph:
X-axis: species (setosa,versicolor,virginica)
Y-axis: Sepal.Length
on the dataset containing three columns from iris data set: Sepal.Length, Sepal.Width, Species
I want the Y-axis to be the names of species, but instead it is showing factor values. I tried the command:
plot(x = file$Sepal.Length, y = levels(file$Species), col = file$Species)
is there any method to view the unique text values as Y-axis using plot() function?
boxplot
withhorizontal=TRUE
– IRTFM