Description Usage Arguments Value Examples
View source: R/pmut.edap.disc.R
This function creates visualization with a line plot of a specified discrete feature against the response,
plus a distribution histogram for that feature.
In the line plot, the discrete feature will be the x-axis and the response be the y-axis,
which will serve as Actual. NA will be formed as its own level.
More lines of Prediction can be created by specifying a prediction data.frame
.
1 | pmut.edap.disc(datatable, varstring, targetstring, pred.df = NULL)
|
datatable |
Object of class |
varstring |
Single character string indicating the column name inside |
targetstring |
Single character string indicating the column name inside |
pred.df |
Object of class |
A view of line plot stacked above the histogram
1 2 3 | df = data.frame(ggplot2::diamonds)
pmut.edap.disc(df, "color", "price")
pmut.edap.disc(df, "color", "price", pred.df=data.frame(GLM=as.numeric(df$color)*400+2600))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.