prettyB icon indicating copy to clipboard operation
prettyB copied to clipboard

axisnames and cex.axis, cex.names not work

Open yikeshu0611 opened this issue 5 years ago • 1 comments

df <- matrix(1:6,ncol=2,dimnames=list(NULL,c('x','y'))) library(prettyB) barplot_p(df,axisnames = F) barplot(df,axisnames=F)

yikeshu0611 avatar Jan 16 '21 07:01 yikeshu0611

Thanks for the report.

  • axisnames is now fixed in the dev version (soon to be CRAN)

But I'm not sure about how best to handle cex.axis and cex.names. This is what makes base graphics a bit messy, as they are then past to par().

Setting par(cex.axis = 2) before calling barplot_p will give the same effect. The issue I have is that

  • {prettyB} changes par()
  • cex.axis/ cex.names uses the default value of par(). But which par()?

Hopefully come up with a compromise soon.

csgillespie avatar Feb 10 '21 08:02 csgillespie