R barplot() – Without Axes
To draw a Bar Plot without Axes using barplot() function, pass logical value FALSE
for axes
parameter in the function call.
axes
parameter is optional and can accept a logical value. If TRUE
, axis is drawn in the bar plot. If FALSE
, axis is not drawn in the bar plot.
Example
In the following program, we draw bar plot without axis, by setting axes
to FALSE
.
example.R
</>
Copy
height <- c(2, 4, 7, 5)
barplot(height, axes = FALSE)
Output
Conclusion
In this R Tutorial, we learned how to draw a Bar Plot without Axes using R barplot() function, with the help of examples.