I have a set of data, which should be plotted in a loglog scale. x-values are always positive, but y-values are positive and negative. So, loglog command will just omit negative y-values. But I want to plot them: I want to have y-axis in logarithmic scale, but with negative values, as well as positive values.
Basically, if we have set of data (x,y),
I want to plot: (log(x),log(y)), if y>0, and (log(x),-log(-y)), if y<0. I tried to to use these formula, and then simple plot function, but with this approach axes are not in logarithmic scale. Once again, I want both axes to be in logarithmic scale.
Thanks
Edit: to clarify, I want the result to be exactly as plot(x,y), but both y-axis and x-axis to be in logarithmic scale