In barplot, is it possible to make the labels parallel to the bars?
Suppose we have the data frame called \"data\".
Page PV UniquePgv
1 /
You can use the las
graphics parameter. However, if you do that, the names will run off the end of the window, so you need to change the margins. For example:
par(mai=c(1,2,1,1))
barplot(data$PV,main="Page Views", horiz=TRUE,names.arg=names,las=1)
ng
esal = c(res$V3)
ename = res$V2 barplot(esal, names.arg=ename, col=c(rainbow(length(esal))), xlab="Employee Name", ylab="Salary", main="Emp V/S Salary")