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 ofinteger
data as continuous rather than discrete (#104).
-
Multiple
x
andy
can be now be passed as alist
in addition to character vector (#95). -
Vectorized plots (returned as a list of plots) are now named according to the
x
ory
data column (#96). -
New function
rot_xy()
allows rotation of x- or y-axis tick labels forgg
objects,patchwork
objects, or lists ofgg
orpatchwork
objects; this function usesrot_at()
for processing lists (#96). -
New function
rot_at()
allows rotation of x- or y-axis tick labels ofgg
orpatchwork
objects 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 usingpatchwork
syntax (#96). -
rot_y()
has been updated with avertical
argument, similar to existing argument inrot_x()
(#96).
-
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).
- Fixed a bug where the wrong y-axis title was getting used in
cwres_covariate()
(#89).
-
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_levels
argument that gets passed topatchwork::plot_annotation()
(#80).
- Fix bug where density line was not being drawn by default over npde and
cwres histograms; the bug came about from incomplete transition to
changes introduced in
ggplot2
v3.4.0 (#74, #75).
- Update plotting code to work with new
ggplot2
behavior introduced in version 3.4.0;pmplots
now depends onggplot2
version 3.4.0 or greater (#71).
-
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).
-
pm_grid()
now uses 'patchwork' to arrange plots; 'patchwork' becomes a suggested package and 'cowplot' is dropped #49. -
scatt()
gainsalpha
argument with default provided bypm_opts$scatter.alpha
#42, #48. -
split_plot()
gainslabeller
argument which gets passed tofacet_wrap()
#43, #47. -
label_tex()
replaceslabel_parse_label()
for labeling facets vialatex2exp::TeX()
;label_parse_label()
remains as an alias #47. -
label_fun
argument for wrap plots is renamedlabeller
; applies to the following plots:wrap_cont_cont()
,wrap_hist()
,wrap_cont_cat()
, and any plot built on these (see?wrap_plots
) #43, #47. -
Fix bug where points overlaid on boxplots were jittered in both directions; jitter is now only in x-direction #45, #46.
-
Add vignettes into package (#37)
-
Re-work README (#37)
-
pairs_plot()
andeta_pairs()
now will properly call user-supplied functions for creating panels on the upper and lower triangle (#2) -
The upper panels in
pairs_plot()
andeta_pairs()
are not customizable usingpm_opts()
(#6) -
The reference lines at -3 and 3 on the y-axis of
npde
plots are no longer drawn by default (#22) -
dv_pred()
anddv_ipred()
gain an argument (logbr
) that lets the user pick the interval for tick marks whenloglog
plots are drawn; options are: "full" (full log units - 10, 100 ,1000), "half" (half log units - 30, 100, 300) or "null" (let ggplot decide); the default is now to show full log unit breaks rather than half log unit breaks (#21) -
pairs_plot()
gains an argument (lower_plot
) which lets the user more easily customize the scatter plot that usually appears on the lower triangle (#26) -
wrap_cont_cat()
is a new wrap function that lets the user make faceted plots of continuous variables versus categorical variables; (#14)
- Add
label_fun
function topairs_plot
,wrap_cont_cont
andwrap_hist
allowing strip labels to incorporate expressions viapmplots:::label_parse
#45 parse_label
andlabel_parse_label
are exported- Add option system #70
- Add better control over tick label rotation and justification #60
- Optionally plot subject ID rather than points in scatter plots #63
- CWRESI plots now have default axis title "CWRES with interaction" #87
- Add dv_pred_ipred plot function #89
- Optionally overlay points on top of boxplots #13
- Refactor
col_label
so that punctuation incol//label
does not result in error #72
- Qualification under CR-88 and released to r_validated
- Added non-exported functions to generate default col-label information
(see
?pm_axis_functions
) - Added
npde_time
,npde_tad
andnpde_tafd
,npde_pred
,npde_hist
, andnpde_q
functions - Added
res_hist
,wres_hist
, andcwres_hist
along with the more generalcont_hist
functions for plotting residuals or other continuous variables as histograms - Vectorized
eta_cont
,(cw)res_cont
,eta_cat
, and(cw)res_cat
; see function help for more details about what this means - Added
cont_cont_list
andcont_cat_list
as vectorized versions ofcont_cont
andcont_cat
- Added internal functions that facilitate the creation of vectorized plotting function calls
- Reorganized the R source files and split several composite help topics into more focused topics
- Added
pairs_plot
as a more-generic front end toggpairs
- Dots are now passed through
eta_pairs
andpairs_plot
toGGally::ggpairs
; this allows users to pass in a mapping for colors etc - Added arguments for
pairs_plot
to allow users to pass in custom functions forupper
andlower
- For the default
lower
function inpairs_plot
, the mapping object is checked forsmooth_color
andsmooth_lty
for more control over the smoothing line - Remove
shk
argument topairs_plot
- Re-configured code to handle user-supplied
xs
andys
information; axis titles respect user-suppliedname
settings for scales - Added functions to
rot_x
androt_y
to rotate tick labels - Added
scales
argument todv_pred
anddv_ipred
; by default (scales = "fixed"
), the x- and y-axis have the same limits; whenscales = "free"
limits are chosen by ggplot2 and will likely be different for x- and y-axis - Fixed bug in
split_plot
when splitting by a factor that doesn't have all level present - Fixed bug in
wres_q
related to indexing a tibble - Added functions to export look and feel:
pm_theme
,pm_abline
,pm_smooth
,pm_hline
,pm_histogram
; these functions help make the plots look consistent with other plots if you are making reference lines, smooths, etc;pm_theme
is still just a wrapper aroundtheme_bw()
eta_pairs
dispatches toeta_hist
when there is only one eta in the mix #14- A density line is by default plotted over histograms
for
cwres
,wres
, andnpde
- Changed all plots so that axis titles are generated with
labs
rather than viascale_(x|y)_continuous
#23 - ggplot2 version 3.0.0 or greater is now required
col_label
specification can now be automatically parsed to generate expressions to be rendered with plotmath; if two$
symbols are found in the title, pmplots will try to load the latex2exp namespace and pass the axis title throughlatex2exp::TeX
. Otherwise, if the axis title begins with!!
, then pmplots will parse the column title to generate the expression- Added cowplot as a suggested package to work with
pm_grid
- Fixed a bug introduced with ggplot2 version 3 when used with
eta_pairs
#17 split_plot
now accepts agrouped
data frame as input; the list of plots will be generated by splitting the data frame on grouping column #32- Added faceted plots:
wrap_cont_cont
,wrap_cont_time
,wrap_res_time
,wrap_eta_cont
,wrap_hist
, andwrap_dv_preds
- Fixed
logbr3
so that the values are sorted; this fixes an issue where the grid lines were not properly displayed with these breaks - Fixed issue in
dv_time
anddv_pred
when modifying the x-scale and y-scale through xs and ys arguments - Changed
dv_time
anddv_pred
so that breaks are at half-log units whenlog = TRUE
orloglog = TRUE
- Initial validated version