germabp.blogg.se

Ncplot scale factor
Ncplot scale factor






ncplot scale factor

I like to scale this but couldnt find a solution yet. This kinda worked but since it is factor, all the values for y-axis are showin on the plot. Then y$Time1 = factor(y$Time1, levels=sort(unique(y$Time1), decreasing=TRUE))

ncplot scale factor

Second approach was to convert Time1 field to factor and only show Hour and Minute. I like to see 00:00 on the top of the y-axis and then 01:00, 02:00 and 03:00 etc. The problem with this one is that I can not reverse order the time. I formatted my Time1 field as.POSIXct and used scale_y_datetime to strip out the Hour and Minute to put it on the y axis. This ended up being a very challenging and I am ready to give up. Right now, three are too many hours and minutes on y-axis that and it does not look good. I would like to scale my y-axis so that it is more readable.

ncplot scale factor

I have Hour and Minute on my yaxis they are factors.








Ncplot scale factor