Description Usage Arguments Value See Also Examples
View source: R/Response_surface.R
DifferenceSurface.plot
1 2 3 | DifferenceSurface.plot(rmap, zcenter = NULL, xl = expression(CONC),
yl = expression(CONC2), zl = "Effect", low = "#e9a3c9",
mid = "#f7f7f7", high = "#4dac26", title = "")
|
rmap |
a ggplot2 plot object depicting a response map, produced by the function responseMap. |
zcenter |
the value that forms the centerpoint (white) in the bidirectional color scale. If NULL (the default), the default setting for scale_fill_gradient2 is used. |
xl |
The character string or expression used to label the x-axis |
yl |
The character string or expression used to label the y-axis |
zl |
The character string or expression used to label the colorscale representing the response variable. "Effect" by default. |
low |
character corresponding to the color selected for the lowest values in the response map. |
mid |
color for the mid point. |
high |
character corresponding to the color selected for the highest values in the response map. |
title |
title for the plot |
A ggplot2 plot object, with the appropriate scales and labels added.
braidReports::responseMap
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
data(Dactolisib_Trametinib_combination)
growth_data<-net_growth_rate(Dactolisib_Trametinib_combination)
GD=growth_data[,c('Cell.line','CONC','CONC2','Net_growth','Type','Birth_rate','Death_rate')]
GD=unique(GD)
rmap <- braidReports::responseMap(Net_growth~CONC+CONC2,GD,logscale=T,interpolate=FALSE)
DifferenceSurface.plot(rmap,zcenter=0.01,xl=expression(paste("[Dactolisib] (",mu,"M)", sep="")),
yl=expression(paste("[Trametinib] (",mu,"M)", sep="")),
zl="Net growth rate of \n sensitive cells",
mid="yellow",low="hotpink1",high="darkturquoise")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.