gadget-framework / rgadget

Rgadget is a set of useful utilities for gadget
6 stars 12 forks source link

plot fit of indices #89

Closed vbartolino closed 4 years ago

vbartolino commented 4 years ago

I've noticed that plot(fit, data="sidat", type="x-y") shows the observed vs predicted indices in their natural scale, even if a loglinearfit is used. As a default I would suggest to use the log-log scale for this plot when this is specified in fittype

bthe commented 4 years ago

A quick fix for the problem is to do

plot(fit,type='x-y') + scale_x_log10() + scale_y_log10()

I'll think about a more generic solution:)