PrintPlots | R Documentation |
Creates plots and outputs results to a letter-sized pdf file, with each
individual page containing plots on a single variable in the data. In
addition, two summary statistics data.table
are returned, one for
numerical variables, and one for categorical (and binary) ones.
PrintPlots(outFl, dataFl, sortVars, dateNm, dateGp, dateGpBp, weightNm = NULL,
labelFl = NULL, genCSV = TRUE, highlightNms = NULL, skewOpt = NULL,
kSample = 50000, fuzzyLabelFn = NULL, kCategories = 9)
outFl |
Name of the output file, with no extension names (e.g., "bank").
A pdf file of plots ("bank.pdf"), and two csv files of summary statistics
("bank_categorical_summary.csv" and "bank_numerical_summary.csv") will be
saved to your working directory, unless a path is included in |
dataFl |
A |
sortVars |
A character vector of variable names in the order they will be plotted. |
dateNm |
Name of column containing the date variable. |
dateGp |
Name of the variable that the time series plots should be
grouped by. Options are |
dateGpBp |
Name of variable the boxplots should be grouped by. Same
options as |
weightNm |
Name of the variable containing row weights, or |
labelFl |
A |
genCSV |
Logical, whether to generate the two csv files of summary statistics for numerical and categorical variables. |
highlightNms |
Either |
skewOpt |
Either a numeric constant or |
kSample |
Either |
fuzzyLabelFn |
Either |
kCategories |
If a categorical variable has more than |
A pdf of plots saved to file outFl
.pdf, and if the argument
genCSV == TRUE
, also two csv files of summary statistics for
numerical and categorical variables.
Copyright 2017 Capital One Services, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Functions depend on this function:
vlm
.
This function depends on:
PlotVar
,
PrepData
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.