Description
This command creates a histogram graph using R (the 'hist' function in R) and displays it in the output window. The R commands used to create the histogram are also displayed. Type '? hist' at the R command prompt for further details.
This command is driven by R. Type 'citation' to see the suggested citation for R.
Syntax
r.hist(in, field, [breaks], [freq], [where]);
| in | the input feature data source | |
| field | the name of field containing the data to plot | |
| [breaks] | the number of bins or cells in the histogram (default=determined automatically) | |
| [freq] | (TRUE/FALSE) if TRUE the histogram represents frequencies/counts, if FALSE the histogram represents probability densities (default=TRUE) | |
| [where] | the selection statement that will be applied to the feature data source to identify a subset of features to process (see full Help documentation for further details) |
Example
r.hist(in="C:\data\parcels.shp", field="Value08");
r.hist(in="C:\data\county.shp", field="Popn", breaks=30, freq=FALSE);