library(dplyr)
library(tidyr)
library(stringr)
# Load example data
data("data_continuous_96")
data("data_continuous_384")
data("data_discrete_6")
data("data_discrete_24")
# Create a 96-well plot with round wells
plate_plot(
data = data_continuous_96,
position = well,
value = Value,
label = Value,
plate_size = 96,
plate_type = "round"
)
# Create a 384-well plot with square wells
# Define a custom lower limit
# Define a custom colour scheme
# Define a custom title with a custom size
plate_plot(
data = data_continuous_384,
position = well,
value = Value,
label = Value,
plate_size = 384,
colour = c("#000004FF", "#51127CFF", "#B63679FF", "#FB8861FF", "#FCFDBFFF"),
limits = c(0, NA),
title = "Custom Title",
title_size = 20
)
# Create a 24-well plot
# Show a 6 row legend
# Scale the plot to 1.2
plate_plot(
data = data_discrete_24,
position = well,
value = Condition,
plate_size = 24,
plate_type = "round",
scale = 1.2,
legend_n_row = 6
)
# Create a 6-well plot
# Define a custom colour scheme
# Adjust label_size to fit text
# Let the plot return width, height and scale
plate_plot(
data = data_discrete_6,
position = well,
value = Condition,
label = Condition,
plate_size = 6,
plate_type = "round",
colour = c("#3a1c71", "#d76d77", "#ffaf7b"),
label_size = 4,
show_legend = FALSE,
silent = FALSE
)
Run the code above in your browser using DataLab