dr.histogram | R Documentation |
Creates a histogram of the density ratio estimates. Useful to understand the distribution of estimated density ratios in each sample, or compare it among samples. It is the default plotting method for density ratio objects.
dr.histogram(
x,
samples = "both",
logscale = TRUE,
binwidth = NULL,
bins = NULL,
tol = 0.01,
...
)
## S3 method for class 'ulsif'
plot(
x,
samples = "both",
logscale = TRUE,
binwidth = NULL,
bins = NULL,
tol = 0.01,
...
)
## S3 method for class 'kliep'
plot(
x,
samples = "both",
logscale = TRUE,
binwidth = NULL,
bins = NULL,
tol = 0.01,
...
)
## S3 method for class 'kmm'
plot(
x,
samples = "both",
logscale = TRUE,
binwidth = NULL,
bins = NULL,
tol = 0.01,
...
)
## S3 method for class 'spectral'
plot(
x,
samples = "both",
logscale = TRUE,
binwidth = NULL,
bins = NULL,
tol = 0.01,
...
)
## S3 method for class 'lhss'
plot(
x,
samples = "both",
logscale = TRUE,
binwidth = NULL,
bins = NULL,
tol = 0.01,
...
)
## S3 method for class 'naivedensityratio'
plot(
x,
samples = "both",
logscale = TRUE,
binwidth = NULL,
bins = NULL,
tol = 0.01,
...
)
x |
Density ratio object created with e.g., |
samples |
Character string indicating whether to plot the 'numerator', 'denominator', or 'both' samples. Default is 'both'. |
logscale |
Logical indicating whether to plot the density ratio estimates on a log scale. Default is TRUE. |
binwidth |
Numeric indicating the width of the bins, passed on to
|
bins |
Numeric indicating the number of bins. Overriden by binwidth, and
passed on to |
tol |
Numeric indicating the tolerance: values below this value will be set to the tolerance value, for legibility of the plots |
... |
Additional arguments passed on to |
A histogram of density ratio estimates.
A histogram of density ratio estimates.
A histogram of density ratio estimates.
A histogram of density ratio estimates.
A histogram of density ratio estimates.
A histogram of density ratio estimates.
A histogram of density ratio estimates.
ulsif
for example usage
kliep
for example usage
kmm
for example usage
spectral
for example usage
lhss
for example usage
naive
for example usage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.