ggPMX
ggPMX copied to clipboard
Freeing scales on a facetted plot does not work
Facet argument should be taking over parameters from facet_wrap but freeing scales does not work. Example below:
ctr %>% pmx_plot_dv_pred(bloq=pmx_bloq(cens="BLOQ",colour="blue",size=1),
use.abbrev = TRUE,
is.draft=FALSE,
strat.facet = ~TRT,
facets=list(scales="free",nrow=1), #scales doesn't work with this faceting
labels=list(title="DV vs PRED by dose"))
Produces:

Generated with ggPMX 1.2.8
-
issue has been reproduced
-
it has been possible to identify what the source of the error is
-
it does not relate to the arguments to
facet_wrapnot being passed through, but rather that they do not take effect -
the reason they do not take effect is that
coord_cartesianis used prior to thescales="free"argument offacet_wrapbeing applied- this takes place in the
plot_pmx.residualfunction
- this takes place in the
-
a fix is in progress
- works now subject to pull request #278

This was accidently closed by me because I accidently merged the Pull request #278. As I mentioned to @tynesjo we cannot use internal ggplot2 functions even if they fix the problem. This would not be accepted by CRAN. It violates their policies.