Skip to content

How to plot multiple semi-variogram from a single dataset efficiently in R?

1 message · Tim Appelhans

#
Uzzal,
first of all, please always reply to the list as well. As I said, other 
people might have similar problems and will thus be able to find a 
soultion in the mail archives.

If you run the code I gave you, you will see that it works.

The relevant bit is

layer(panel.text(x = 1000, y = 900, adj = c(0, 1),
                      labels = dates[panel.number()]))

where the text gets plotted at x = 1000 and y = 900. In your case, y = 
900 is beyond the limits of the y-scale.

Replacing the above with this should fix it:

layer(grid.text(x = unit(0.1, "npc"),
                     y = unit(0.9, "npc"),
                     just = c("left", "top"),
                     label = dates[panel.number()]))

This will use normalised x and y scales ranging from 0 to 1 no matter 
what the absolute units are.

HTH
Tim
On 26.08.2015 10:12, Uzzal wrote: