ggPMXdevelopment / ggPMX

ggPMX R package
37 stars 11 forks source link

Freeing scales on a facetted plot does not work #259

Open biencan1 opened 2 years ago

biencan1 commented 2 years ago

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: image

Generated with ggPMX 1.2.8

tynsci commented 2 years ago
tynsci commented 1 year ago
mattfidler commented 1 year ago

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.