The following code creates Barplot in R. However, the first column is empty. I donβt understand why ... There are no NA values ββin my dataset. How can I remove the space between the Bayview Column and the Y-Axis?
# 2. Bar Plot for Police District barplot(xtabs(~sample$PoliceDistrict), main="Police District Distribution of Incidents", xlab="Number of Incidents in Police District", ylab="Frequency", col=rainbow(nlevels(as.factor(sample$PoliceDistrict))), las=2,
Here is the result of Barplot with a 1st empty column:

formatting r bar-chart
Xavier
source share