Releases: metrumresearchgroup/pmplots
Release list
pmplots 0.6.1
pmplots 0.6.0
-
A new family of functions lets you update axis and aesthetic labels on plots
after they are created, looking up column names in a named list oryspec
object. (#122)pm_gg_labs()builds a label object that can be added (+) to anygg
object to update axis and aesthetic labels based on the mapped column names.
It also acceptsx_break,y_break, andvar_breakarguments for
inserting line breaks into long labels.pm_relabel()is a generic that appliespm_gg_labs()to aggobject,
apatchworkobject (e.g., frometa_covariate()ornpde_panel()), or a
list ofggobjects.pmp_relabel_wrap()relabels facet strip labels in plots produced by
wrap_*functions (e.g.,wrap_eta_cont(),wrap_cont_cont()), including
optionalf_breakandunit_breakarguments for wrapping long strip labels.pmp_relabel_pairs()relabels strip and axis labels in pairs plots (e.g.,
frometa_pairs()).relabel_at()applies relabeling to specific plots in a named list,
selected by exact name or regular expression.pm_label_columns()attaches per-column labels to a data frame from a named
list oryspecobject;pm_label_rm()removes them. When a data frame
labeled this way is passed to awrap_*function withuse_labels = TRUE
(now the default), the stored labels are used as facet strip titles.pm_gg_break()andpm_gg_break_aes()will break an established aesthetic
label across two lines;pm_gg_break()identifies labels to break by
variable name whilepm_gg_break_aes()identifies labels to break by
aesthetic name.pm_label_break()is aggplot2labeller function that wraps facet labels
at a specified character width, for use withfacet_wrap(labeller = ...).
-
A new aliasing system lets you globally redirect the canonical column names
assumed by pmplots to the names actually present in your data. (#124)pm_set_aliases()registers one or morealias = canonicalpairs (e.g.,
pm_set_aliases(TAFD = TIME)redirects every place pmplots would look for
TIMEtoTAFDinstead). Only columns returned bypm_show_canonical()
can be aliased.pm_aliases()prints currently active aliases;pm_clear_aliases()removes
them all;pm_show_canonical()lists which column names can be aliased.pm_col_id()returns the subject identifier column name (defaults to"ID";
controlled globally viaoptions(mrg.id_col = ...)).pm_col_tad()returns
the time-after-dose column name with alias support. Both are now used
internally wherever pmplots previously hard-coded"ID"or"TAD".
-
eta_covariate(),eta_covariate_list(),npde_covariate(),
npde_covariate_list(),cwres_covariate(),cwres_covariate_list(), and
cont_cat_panel()gain apointsargument that is forwarded toboxwork()
when a categorical covariate column is plotted as a boxplot. (#126) -
boxwork()(and downstream functions such aspm_box(),cont_cat(), and
theeta_cat()/npde_cat()families) acceptfill = NULLto suppress the
default fill, leaving the returned plot open to extension withaes(fill = ...)for grouping by a third variable. (#125) -
Minimum ggplot2 version is now 3.5.2. (#122)
-
Minimum R version is now 4.1.0. (#122)
pmplots 0.5.2
pmplots 0.5.1
Bugs fixed
eta_covariate()now callseta_cont()rather thaneta_cat()when data for
the x-axis isinteger, fixing an error that was generated frometa_cat(),
which always expectsfactor,character, orlogical; other internal
updates have been made to ensure consistent treatment ofintegerdata as
continuous rather than discrete (#104).
pmplots 0.5.0
-
Multiple
xandycan be now be passed as alistin addition to
character vector (#95). -
Vectorized plots (returned as a list of plots) are now named according to the
xorydata column (#96). -
New function
rot_xy()allows rotation of x- or y-axis tick labels forgg
objects,patchworkobjects, or lists ofggorpatchworkobjects; this
function usesrot_at()for processing lists (#96). -
New function
rot_at()allows rotation of x- or y-axis tick labels ofgg
orpatchworkobjects or named lists of these objects; the list method
allows rotation of specific plots in the list by matching the name exactly
or through a regular expression (#96). -
New function
pm_with()allows arrangement of a named list of plots using
patchworksyntax (#96). -
rot_y()has been updated with averticalargument, similar to existing
argument inrot_x()(#96).
scores:
{
"testing": {
"check": 1,
"covr": 0.859
},
"documentation": {
"has_vignettes": 1,
"has_website": 1,
"has_news": 1
},
"maintenance": {
"has_maintainer": 1,
"news_current": 1
},
"transparency": {
"has_source_control": 1,
"has_bug_reports_url": 1
}
}
pmplots 0.4.1
-
y-axis for
cwres_q()andnpde_q()changed to remove the word "distribution"
(#92). -
pmplots now depends on ggplot2 version 3.5.0 or greater (#86).
-
Axis titles for conditional weighted residuals are now abbreviated "CWRES" (#83).
Bugs fixed
- Fixed a bug where the wrong y-axis title was getting used in
cwres_covariate()
(#89).
pmplots 0.4.0
-
Add a series of functions for standardized, paneled displays (#77, #81).
eta_covariate()creates panel of ETA versus continuous or categorical
covariates.npde_covariate()creates panel of NPDE versus continuous or categorical
covariates.cwres_covariate()creates panel of CWRES versus continuous or categorical
covariates.cont_cat_panel()creates panel of continuous versus categorical covariates.npde_panel()creates panel of NPDE-based diagnostics.cwres_panel()creates panel of CWRES-based diagnostics.npde_scatter()creates panel of NPDE-based scatter plots.cwres_scatter()creates panel of CWRES-based scatter plots.npde_hist_q()creates NPDE histogram and Q-Q plot in a panel.cwres_hist_q()creates CWRES histogram and Q-Q plot in a panel.- Component plots can be returned in a list which can be arranged via
with().
-
pm_grid()gainstag_levelsargument that gets passed to
patchwork::plot_annotation()(#80).
pmplots 0.3.7
pmplots 0.3.6
- Update plotting code to work with new
ggplot2behavior introduced
in version 3.4.0;pmplotsnow depends onggplot2version 3.4.0
or greater (#71).
pmplots 0.3.5
-
Functions generating default axis titles now have arguments so that
interpolated customizations can happen when calling the function outside
of a plot context (#57). -
dv_pred_ipred()heavily refactored for functionality and style; see the
PR for significant changes / improvements (#54). -
Put stories in yaml format; add script to build validation docs from the
yaml file (#58, #59).