Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:46:08+00:00 2026-06-13T20:46:08+00:00

I have a problem in plotting uneven scale plot on x axis with R

  • 0

I have a problem in plotting uneven scale plot on x axis with R

Here is an example:

plot(1:100,1:100)

will give the equal tick space on x axis.

However, I want to show the graph with first half of space showing 1 to 10, and the left half space showing 10 to 100, so the points in the 10 to 100 more dense, and points in 1:10 are easier to see. How to do it with R?

Like this:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:46:10+00:00Added an answer on June 13, 2026 at 8:46 pm

    This is not an easy one-off task to complete. You’ll actually need to transform to the scaled data and supply custom tick marked axes. Any reason you haven’t considered simply logging the x-axis instead? (supplying the option plot(x, y, log='x') will do that).

    What I think you’ve described is this:

    xnew <- ifelse(x<10, x, x/10)
    plot(xnew, y, axes=FALSE, xlab='x')
    axis(1, at=c(0, 10, 20), labels=c(0, 10, 100))
    axis(2)
    box()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to plot an histogram in logarithmic scale on both axis using gnuplot.
I have a scaling problem with XYChart plotting: my data serie ranges in float
I'm facing a problem with plotting data using the CorePlot framework. I have integrated
I have problem developing with live555. I already build the lib-files and example projects
I have a simple problem to fit a straight line on log-log scale. My
I have created a graph with one x-axis and two y-axis. The problem is
I have thousands of points to Plot on a JFreeChart scatter plot. The problem
I have a fairly complex plotting problem that i thought it would be interesting
I have a dataset with 100 000 datapoints which I have to plot on
I have a dataset that I am plotting within a rectangular space defined in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.