Uses the same display options as plot.dp_score(). Group sample sizes
follow observed proportions if non-private counts were retained; otherwise
they are allocated equally across public group labels.
Usage
# S3 method for class 'dp_score_group'
plot(
x,
type = c("histogram", "sample"),
sampling_control = NULL,
plot_control = NULL,
center = TRUE,
...
)
# S3 method for class 'dp_score_plot_group'
plot(x, ...)
# S3 method for class 'dp_score_plot_group'
summary(object, ...)
# S3 method for class 'dp_score_plot_group'
print(x, ...)Arguments
- x
A grouped result from
dp_score()withgroupsupplied.- type
"histogram","sample", or both (c("histogram", "sample")by default). Samples are synthetic for DP histograms; ordinary-reference sample plots show centered observed scores unless an explicitsample_sizeis requested.- sampling_control
Optional
sampling_control()object used for"sample";NULLuses defaults.- plot_control
Optional
score_plot_control()appearance settings;NULLuses defaults.- center
Whether to shift displayed private coordinates by the midpoint of the private frame (
TRUEby default). Ordinary reference coordinates remain centered at zero. This changes only the display.- ...
Passed to the summary print method.
- object
A plotting result returned by
plot.dp_score()orplot.dp_score_group().