We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colors a pain to define in qbarplot. You can't easily provide a color vector as in wbarplot()
wbarplot()
qbarplot(xxx, col = 1) qbarplot(xxx, col = 2) # has no effect qbarplot(xxx, palette_use = "aaas", col = 2) # changes color
qbarplot(xxx, col = 2:1)
qbarplot(xxx, col = "brown") qbarplot(xxx, col = c("brown", "orange")) # Wtf: now it reverts back to default palette and alternating colors
qbarplot(xxx, col = 1:2) # and of qbarplot(xxx, col = 1:2, palette_use = "jco")
qbarplot(xxx, palette = "orange", col = 2) # has no effect
col = 1:length(xxx)
qbarplot(xxx, palette = rich.colors(n = length(xxx)))
qbarplot(xxx, palette = rich.colors(n = length(xxx)), col = 1:length(xxx))
This is super weird, and cumbersome, but it is probably due to the fact that qbarplot is a wrapper around ggpubr.
The text was updated successfully, but these errors were encountered:
qbarplot should repurpose the stupid palette and color options.
col
palette = rich.colors(n = length(xxx)), col = 1:length(xxx))
Sorry, something went wrong.
col = as.character(1:3)[1], xlab = ... ...) { # later df[["colour"]] <- if (length(col) == length(vec)) { as.character(col) } else if (hline & filtercol != 0) { if (filtercol == 1) (df$"value" > hline) else if (filtercol == -1) (df$"value" < hline) } else { as.character(rep(col, length(vec))[1:length(vec)]) }
No branches or pull requests
Description
Colors a pain to define in qbarplot.
You can't easily provide a color vector as in
wbarplot()
Details
qbarplot(xxx, col = 1)
Alternating colors
To explicitly define colors you need to define it in palette
The above is the equivalent of:
To explicitly define a SINGLE color you need to define it in palette
You cannot explicitly define a SET OF COLORS in qbarplot, you need to define it in palette and use
col = 1:length(xxx)
So the correct way to define a set of colors is:
This is super weird, and cumbersome, but it is probably due to the fact that qbarplot is a wrapper around ggpubr.
The text was updated successfully, but these errors were encountered: