ef_byplot: Countor plot

Description Usage Arguments Value

Description

Create a contour plot with marginal densities

Usage

1
2
3
4
ef_byplot(data, samples = NULL, x, y, xlab, ylab,
  contour.fill.color = FALSE, contour.fill.color.key = NULL,
  pch.color.key = NULL, pch.size = 2, pch.show = TRUE,
  legend.title = "")

Arguments

data

a data frame

samples

the output of the function eforensics. It is optional. If provided, the plot will display the classification of the points in each fraud distribution

x

a string with the name of the variable in data that will be plotted in the x-axis

y

a string with the name of the variable in data that will be plotted in the y-axis

xlab

a string with the text to appear in the x-axis

ylab

a string with the text to appear in the y-axis

contour.fill.color

boolean, if TRUE, it uses the contour.fill.color.key to color the contour of the bivariate density

contour.fill.color.key

a string with the name of the variable in data to use as a color key of the contour of the bivariate density. It is used only if samples is not provided

pch.color.key

a string with the name of the variable in data that will be used to color the points. Default is NULL. It is used only if samples is not provided

pch.size

a integer with the size of the points. Default is 1

pch.show

a boolean value indicating if the points should be displayed in the plot (T) or not (F). Default is TRUE

legend.title

a string with the title of the legend

Value

a ggplot object


UMeforensics/eforensics_public documentation built on Oct. 31, 2019, 12:49 a.m.