plot_layout_dataframe: Function to plot layout dataframes

View source: R/plot_layout_dataframe.R

plot_layout_dataframeR Documentation

Function to plot layout dataframes

Description

This function recive dataframe similar to the output from read_layout_files() and generate a plot that represents the designed layout of the microplate.

Usage

plot_layout_dataframe(
  platemap_df,
  var_shape,
  var_colour,
  add_conc = NULL,
  plate_title = NULL
)

Arguments

platemap_df

dataframe structure similar to read_layout_files() output

var_shape

Assign shape to represent one variable

var_colour

Assign colour to other variable

add_conc

This argument is optional, TRUE to add concentration.

plate_title

This argument is optional, add the title.

Value

Returns a plot that represents the microplate with the given layout. The plot shows in the x-axis the number of columns and in the y-axis the letter to identified the row.

Examples

file_path <- system.file("extdata", "test_layout_file.csv",
  package = "mpxtractor"
)

# Data is store as a tibble
  df_plot_plate <- read_layout_file( file = file_path)

  plot_plate <- plot_layout_dataframe(
  df_plot_plate,
  var_shape = "basic",
  var_colour = "condition",
  plate_title = "My experiment"
)





# Show the plot
plot_plate


MartinBanchero/mpxtractor documentation built on March 30, 2022, 10:56 p.m.