D_compare-methods {solaR} | R Documentation |
Compare G0, Gef and ProdGCPV objects
Description
Compare and plot the yearly values of several objects.
Usage
## S4 method for signature 'G0'
compare(...)
Arguments
... |
A list of objects to be compared. |
Methods
The class of the first element of ...
is used to determine the
suitable method. The result is plotted with dotplot
:
signature(... = "G0")
yearly values of
G0d
,B0d
andD0d
.signature(... = "Gef")
yearly values of
Gefd
,Befd
andDefd
.signature(... = "ProdGCPV")
yearly values of
Yf
,Gefd
andG0d
.
Author(s)
Oscar Perpiñán Lamigueiro
See Also
Examples
lat = 37.2;
G0dm = c(2766, 3491, 4494, 5912, 6989, 7742, 7919, 7027, 5369, 3562, 2814,
2179)
Ta = c(10, 14.1, 15.6, 17.2, 19.3, 21.2, 28.4, 29.9, 24.3, 18.2, 17.2, 15.2)
prom = list(G0dm = G0dm, Ta = Ta)
###Comparison of different tracker methods
ProdFixed <- prodGCPV(lat = lat, dataRad = prom, keep.night = FALSE)
Prod2x <- prodGCPV(lat = lat, dataRad = prom, modeTrk = 'two', keep.night = FALSE)
ProdHoriz <- prodGCPV(lat = lat, dataRad = prom, modeTrk = 'horiz', keep.night = FALSE)
compare(ProdFixed, Prod2x, ProdHoriz)
##The first element rules the method
GefFixed = as(ProdFixed, 'Gef')
compare(GefFixed, Prod2x, ProdHoriz)
[Package solaR version 0.46 Index]