Description Usage Arguments Value License Examples

For a variable is all positive (no zeros) and has larger than 50 all distinct
values, if it is highly skewed, then all box plots can be plotted under the
log base 10 transformation. See the argument `skewOpt`

for details.

1 |

`dataFl` |
A |

`myVar` |
The name of the variable to be plotted |

`dateGpBp` |
Name of variable the boxplots should be grouped by. Same
options as |

`weightNm` |
Name of the variable containing row weights, or |

`skewOpt` |
Either a numeric constant or |

A `ggplot2`

object with a box plot of `myVar`

grouped by
`dateGpBp`

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.

1 2 3 4 5 6 7 8 9 10 11 12 | ```
data(bankData)
bankData <- PrepData(bankData, dateNm = "date", dateGp = "months",
dateGpBp = "quarters")
PlotDist(dataFl = bankData, myVar = "balance", dateGpBp = "quarters")
## The following attempt to log transform will fail due to negative values,
## and the untransformed version will be returned
PlotDist(dataFl = bankData, myVar = "balance", dateGpBp = "quarters",
skewOpt = 3)
## This attempt should succeed, as the skew exceeds 3 and there are no
## negative values
PlotDist(dataFl = bankData, myVar = "duration", dateGpBp = "quarters",
skewOpt = 3)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.