-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
Factor/categorical color symbology in plots #27
Comments
Ah - no this should have been obvious to me. I had some custom symbology running through it which was the error...
|
Hi again. I just wanted to follow-up with something related. Is it possible to add these discrete labels to the well fills? Using your example - placing an "a" over all of the red wells. Is this possible with platetools or does this require some very custom work? |
Good question, and another undocumented workflow. You can add labels using library(platetools)
library(ggplot2)
df = data.frame(
well = num_to_well(1:96),
sample_name = sample(c("a", "b", "c"), 96, replace=TRUE)
)
raw_map(
well = df$well,
data = df$sample_name,
plate = 96
) +
geom_text(aes(label=df$sample_name)) |
Excellent, thank you. This is looking quite good. |
Are there any methods for allowing a set # of categorical colors for ggplots? Everything defaults as a continuous color range.
The text was updated successfully, but these errors were encountered: