This manual palette can handle a maximum of 10 values. You have supplied 12
library(readxl) df = read_excel("testcode.xls", sheet = 1, na = "NA")
long_df <- df %>%
- pivot_longer(cols = everything(), names_to = "Region", values_to = "Value")
table(long_df$Region)
Central [NNS] Central [NS] Frontal [NNS] Frontal [NS] 200 200 200 200 Overall[NNS] Overall[NS] Parietal [NNS] Parietal [NS] 200 200 200 200 Prefrontal [NNS] Prefrontal [NS] Temporal [NNS] Temporal [NS] 200 200 200 200
idx <- list(
- c("Overall[NS]", "Overall[NNS]"),
- c("Prefrontal [NS]", "Prefrontal [NNS]"),
- c("Frontal [NS]", "Frontal [NNS]"),
- c("Temporal [NS]", "Temporal [NNS]"),
- c("Central [NS]", "Central [NNS]"),
- c("Parietal [NS]", "Parietal [NNS]")
- )
dabest_obj <- long_df %>%
- dabestr::load(x = Region, y = Value,
-
idx = idx)
dabest_obj %>%
- mean_diff() %>%
- dabest_plot()
Warning messages:
1: This manual palette can handle a maximum of 10 values. You have supplied 12
2: Removed 400 rows containing missing values or values outside the scale range
(
geom_point()). 3: In get_plot_component(plot, "guide-box") : Multiple components found; returning the first one. To return all, usereturn_all = TRUE. 4: This manual palette can handle a maximum of 10 values. You have supplied 12 5: Removed 400 rows containing missing values or values outside the scale range (geom_point()). 6: This manual palette can handle a maximum of 10 values. You have supplied 12
First of all, I'm sorry that my code format is a bit messy. My problem is just as the title of this issue. My data has 12 columns, but when drawing the graph, it can only accept up to 10 categories, resulting in the last two categories being blank in the graph. What should I do to solve this problem?
Same as @arroe99 – dabest_plot palette issue?
In ashared_control plot:
If I have 8 groups all works fine. If I have 9 or 10 groups then the colours for the raw and contrast plots do not match...
If I have 11 groups then the colours for the raw and contrast plots do not match and the last raw plot is not shown (although the axis label exists). Any fix for this??