[BioC] image size - How to make bigger images

Wolfgang Huber whuber at embl.de
Mon Apr 11 14:27:04 CEST 2011


Hi

I am not sure if this helps here specifically, but in general you can 
also try with varying (increasing) the parameter 'pointsize' of the 
'png' function.

	Best wishes
	Wolfgang

Heidi Dvinge scripsit 11/04/11 13:56:
> Hi Assa,
>
> you'll probably just have to play around with the parameters (file size
> and cexRow) until you find something to your liking. For example, the
> following works for me, although with 200 rows you'll have to zoom in on
> the pdf to read the labels.
>
> library(gplots)
> data	<- matrix(rnorm(400, mean = 0, sd = 1), ncol=2)
> pdf("heatmap_test.pdf", height=10, width=5)
> heatmap.2(data, trace="none", labRow=paste("row", 1:200, sep="_"),
> lhei=c(0.7,5), cexRow=0.35, mar=c(2,3), density.info="none")
> dev.off()
>
>
> \Heidi
>
>> Here is the image again, I think the first one as too big
>>
>> On Mon, Apr 11, 2011 at 11:30, Assa Yeroslaviz<frymor at gmail.com>  wrote:
>>
>>> Hi Heidi,
>>>
>>> Yes, I know and used this option. But to be able to see all my labels, I
>>> need to use a cexRow=0.2 and it still didn't help much.
>>>
>>> I am adding the image to show how it looks with cexRow=0.2.
>>>
>>> For that reason I would like to increase the idth of the single lines.
>>> This
>>> way I can use a bigger cexRow and still the line won't overlap.
>>>
>>> THX
>>> Assa
>>>
>>>
>>> On Mon, Apr 11, 2011 at 11:11, Heidi Dvinge<heidi at ebi.ac.uk>  wrote:
>>>
>>>> Hi Assa,
>>>>
>>>> from your post it's not completely clear to me whether it's the figure
>>>> itself that's too small, or the writing in the row labels. If it's the
>>>> latter, then have a look at the cexRow parameter in heatmap.2 for
>>>> increasing the font size.
>>>>
>>>> HTH
>>>> \Heidi
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a problem with my heat maps.
>>>>>
>>>>> I have a matrix of 222x2 of GO categories. I am using the heatmap.2
>>>>> package
>>>>> to output an image. either a png or pdf.
>>>>>
>>>>> My problem is that the labels on the x axis are to many ,so that I
>>>> can't
>>>>> read them.
>>>>>
>>>>> I would like to make the single item size bigger (row size), so that
>>>> I
>>>>> will
>>>>> be able to differentiate between the single lables.
>>>>>
>>>>> But I didn't find how to do it.
>>>>>
>>>>> I tried to change the
>>>>>
>>>>> par(mar = c(3, 3, 2, 5), oma = c(3,2,2,6))
>>>>>
>>>>>
>>>>> and also to make the resolution and sizes of my image bigger
>>>>>
>>>>> png("image.png",res=600,height=2600,width=2600)
>>>>>
>>>>>
>>>>> But none of these parameters has change the size of the single rows I
>>>>> still
>>>>> can't read my labels.
>>>>>
>>>>> Is there a way of making the image bigger?
>>>>>
>>>>> THX
>>>>> Assa
>>>>>
>>>>>        [[alternative HTML version deleted]]
>>>>>
>>>>> _______________________________________________
>>>>> Bioconductor mailing list
>>>>> Bioconductor at r-project.org
>>>>> https://stat.ethz.ch/mailman/listinfo/bioconductor
>>>>> Search the archives:
>>>>> http://news.gmane.org/gmane.science.biology.informatics.conductor
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor


-- 


Wolfgang Huber
EMBL
http://www.embl.de/research/units/genome_biology/huber



More information about the Bioconductor mailing list