This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Plotly graphs in R

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

Add following details:

  1. Image you are talking about.
  2. Code you have used
  3. Expected image output (would help).

You can try plotting in log10 scale.

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

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.

0 answers

No answers yet.

Log in to answer this question.