- Related Questions & Answers
- How to create a plot in base R with tick marks of larger size?
- How to create a plot with reversed Y-axis labels in base R?
- How to rotate X-axis tick labels in Pandas bar plot?
- How to create a plot in base R with tick marks but excluding axes lines?
- How to create a plot in base R with dates sequence on X-axis?
- How to use mtext function to create the X-axis labels in base R?
- How to create a dendrogram without X-axis labels in R?
- How to include a zero with tick in base R plot?
- How to plot the X-axis labels on the upper-side of the plot in R?
- How to display raise to the power on X-axis in base R plot?
- How to X-axis labels to the top of the plot using ggplot2 in R?
- How to set the Y-axis tick marks using ggplot2 in R?
- How to create bar plot in base R with different limits for Y-axis?
- How to create a plot of quadratic regression with fitted values against X in base R?
- Hide axis values but keep axis tick labels in matplotlib

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

To create a plot with tick marks manually between X-axis values in base R, we first need to create the plot without X-axis labels then add the axis values using axis function with appropriate labels, this will create tick marks as well as labels. After this step, we would need to use the axis function again to add the tick marks without labels.

plot(1:10,xaxt='n',type="l") axis(1,at=1:10) axis(1,at=seq(0,11,0.2),labels=NA)

plot(1,xaxt='n') axis(1,at=1) axis(1,at=seq(0,2,0.05),labels=NA)

Advertisements