fixPattern: fixPattern

Description Usage Arguments Examples

Description

fix patterns on plates by run

Usage

1

Arguments

screen

A data frame or data table containing screening data with columns: Plate_ID, Row, Column, Compound_ID, Well_Type, Run_ID, Compound_Plate, Value. See documentation for further description of column values

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
library(RColorBrewer)
library(ggplot)
Load screen
data(mdmx)
pattern <- platePattern(mdmx)
myPalette <- colorRampPalette(rev(brewer.pal(11, "Spectral")))
ggplot(pattern, aes(factor(Column), factor(Row))) +
 facet_wrap('Run_ID') + 
 geom_tile(aes(fill=Background), color='white') +
 scale_fill_gradientn(colours = myPalette(100), limits=c(-150, 150)) +
 ggtitle('Plate Well Heatmap') + 
 xlab('Column') + 
 ylab('Row') +
 theme(axis.text=element_text(size=16), 
       axis.title=element_text(size=16), 
       legend.text=element_text(size=16),
       title=element_text(size=16),
       legend.title=element_blank())

mdmx <- fixPattern(mdmx)
pattern <- platePattern(mdmx)
ggplot(pattern, aes(factor(Column), factor(Row))) +
 facet_wrap('Run_ID') + 
 geom_tile(aes(fill=Background), color='white') +
 scale_fill_gradientn(colours = myPalette(100), limits=c(-150, 150)) +
 ggtitle('Plate Well Heatmap') + 
 xlab('Column') + 
 ylab('Row') +
 theme(axis.text=element_text(size=16), 
       axis.title=element_text(size=16), 
       legend.text=element_text(size=16),
       title=element_text(size=16),
       legend.title=element_blank())

BenjaminChittick/BenCScore documentation built on May 5, 2019, 2:41 p.m.