| scaling | R Documentation | 
scale the 'Hits' and 'Hits+FalseAlarms' values in the TOC output table, as well as the prevalence and population, using a scaling factor. Labels for the modified units in the TOC object are changed to newUnits
## S4 method for signature 'Toc' scaling(x, scalingFactor, newUnits)
| x | an object of class Toc | 
| scalingFactor | numeric value to scale 'Hits' and 'Hits+FalseAlarms' values in the TOC output table, as well as the prevalence and population | 
| newUnits | charater string for the new data units in the TOC object | 
an object of class TOC
TOC, ROC
index <- rast(system.file("external/Prob_Map2.rst", package = "TOC"))
boolean <- rast(system.file("external/Change_Map2b.rst", package = "TOC"))
mask <- rast(system.file("external/MASK4.rst", package = "TOC"))
tocd <- TOC(index, boolean, mask, nthres = 100)
plot(tocd)
## scale units from square m to square km
tocd_sqkm <- scaling(tocd, scalingFactor = 1000000, newUnits = "square km")
plot(tocd_sqkm) 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.