Plotly graphs in R
0
0
Entering edit mode
2.2 years ago
Utkarsha • 0

Is there any function or way in plotly library in R to stretch out a portion of the X axis in the static graph. Many data points are scattered around a particular interval in the x-axis, so I want to zoom into that particular interval, keeping the other part constant.

plotly • 1.0k views
ADD COMMENT
0
Entering edit mode

Add following details:

  1. Image you are talking about.
  2. Code you have used
  3. Expected image output (would help).
ADD REPLY
0
Entering edit mode

my plot, I want to expand the xasis between 0 to 1000

ADD REPLY
0
Entering edit mode

desired output- how the Xaxis from -50 to 0 is stretched compared to the rest of the axis

ADD REPLY
0
Entering edit mode

You can try plotting in log10 scale.

ADD REPLY
0
Entering edit mode

I have negative numbers in my dataset. Log is not applicable to negative numbers.

ADD REPLY
0
Entering edit mode

It is difficult to second guess your data. Post some data. You can also try either by limiting x scale or coord_cartesian to zoom onto region of interest. If you want to retain all the values, try pseudo_log_trans from scales package.

ADD REPLY

Login before adding your answer.

Traffic: 2523 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6