powered by
Function for calculating risk means within intervals and visualization.
riskmean(formula, data = NULL) # S3 method for riskmean print(x, ...) # S3 method for riskmean plot(x, ...)
a formula of response and explanatory variables
a data.frame includes response and explanatory variables
a list of risk mean values
ignore
# NOT RUN { rm1 <- riskmean(NDVIchange ~ Climatezone + Mining, data = ndvi_40) rm1 plot(rm1) # } # NOT RUN { data <- ndvi_40[,1:3] rm2 <- riskmean(NDVIchange ~ ., data = data) rm2 # } # NOT RUN { # }
Run the code above in your browser using DataLab