Hi, I got Error in plot.new() : figure margins too large
with the below code:
> logCPM <- cpm(y, prior.count=2, log=TRUE)
> head(y$genes)
gene_name gene_description
3 sp0000003 <NA>
4 sp0000004 <NA>
5 sp0000005 PUA domain
6 sp0000006 Sugar efflux transporter for intercellular exchange
8 sp0000008 <NA>
12 sp0000012 Ankyrin repeats (many copies)
> y$samples$group
[1] Root_tip.1.5 Root_tip.1.5 Root_tip.1.5 Root_tip.1.5 Leaves.1.5 Leaves.1.5
[7] Leaves.1.5 Leaves.1.5 Root_tip.2 Root_tip.2 Root_tip.2 Root_tip.2
[13] Leaves.2 Leaves.2 Leaves.2 Leaves.2 Root_tip.3 Root_tip.3
[19] Root_tip.3 Root_tip.3 Leaves.3 Leaves.3 Leaves.3 Leaves.3
Levels: Leaves.1.5 Leaves.2 Leaves.3 Root_tip.1.5 Root_tip.2 Root_tip.3
> rownames(logCPM) <- y$genes$genes
> colnames(logCPM) <- paste(y$samples$group, 1:2, sep="-")
> o <- order(tr$table$PValue)
> logCPM <- logCPM[o[1:30],]
> logCPM <- t(scale(t(logCPM)))
> library(gplots)
Attaching package: ‘gplots’
The following object is masked from ‘package:stats’:
lowess
> col.pan <- colorpanel(100, "blue", "white", "red")
> heatmap.2(logCPM, col=col.pan, Rowv=TRUE, scale="none",
+ trace="none", dendrogram="both", cexRow=1, cexCol=1.4, density.info="none",
+ margin=c(10,9), lhei=c(2,10), lwid=c(2,6))
Error in plot.new() : figure margins too large
What did I miss?
Thank you in advance.
Thank you for pointing out that it is a CRAN package.