How can I to turn vertically the names "fast" and "slow" through 'barplot()' ?
barplot(table(mode))
How can I to turn vertically the names "fast" and "slow" through 'barplot()' ?
barplot(table(mode))
x <- c("1.3.43.33", "2.2.43.33", "1.3.43.33", "66.3.43.33")
df = as.data.frame(table(x))
df
library(ggplot2)
ggplot(df, aes(x = x, y = Freq))+
geom_bar(stat = "identity")
Just write :
barplot(table(x), las = 2)
where x
is your vector of data :
x <- c("1.3.43.33", "2.2.43.33", "1.3.43.33", "66.3.43.33")
add the "las" parameter to change the orientation of the labels
barplot(table(mode), las=2)