[BioC] fontsize in Rgraphviz

Mark W Kimpel mwkimpel at gmail.com
Tue Jan 29 17:12:24 CET 2008


Li,

I am outputting to a ps file and viewing in Adobe Illustrator. Here are 
the actual values that are set for fontsize but which are being ignored 
in the output. As a test, I have also set all fontsize to "48" as I know 
this is a common fontsize, it also was ignored.

Mark

Browse[1]>  nAttrs$fontsize
   Tgfb3     Kdr   Dusp5    Mapt   Dusp1   Ptpn5  Map3k1   Ntrk1    Insr 
   Mapk1
      14      14      12      12      16      11      12      13      11 
      13
    Flt1   Prkcc    Ccr5    Stk3     Crk   Cxcr4 Il11ra1   Pdgfa   Ntrk2 
  Pdgfra
      12      11      16      13      13      13      12      12      29 
      12
   Il6st   Fgfr2     Fos   Mapk8    Elk1   Nr4a1   Dusp6    Ctf1   Taok2 
    Ntf3
      16      12      28      12      11      19      12      11      12 
      12
    Akt2 Pla2g4a     Max    Jund  Pik3cb     Jun   Tgfb2    Crkl    Kitl 
    Pak2
      11      12      11      58      11      12      18      11      15 
      11
  Mapk12
      13

Mark W. Kimpel MD  ** Neuroinformatics ** Dept. of Psychiatry
Indiana University School of Medicine

15032 Hunter Court, Westfield, IN  46074

(317) 490-5129 Work, & Mobile & VoiceMail
(317) 204-4202 Home (no voice mail please)

mwkimpel<at>gmail<dot>com

******************************************************************


Li Long wrote:
> Here are a few things to check:
> 
> (1) fontsize is of "point size", so I'd check "floor(22*nodeWidth)" really
> yealds different values;
> (2) it depends on how you render the graph, if you render via graphviz,
> e.g., output to files, this attribute is honored by graphviz; if you
> render interactively, it's done by R;
> (3) for testing purpose, you can try this value on edges to see if it
> makes any difference.
> 
> Li
> 
> 
>> I would like to vary the font size of node labels in Rgraphviz as I have
>> been varying node size by fold change magnitude. Unfortunately, many
>> attempts have failed and I continue to get the same font size. Here is
>> my code followed by sessionInfo()
>>
>> nAttrs$fontsize<-floor(22 * nodeWidth)
>>
>> nodeWidth is a vector of widths which vary by node according to fold
>> change. This works nicely, but font size does not.
>>
>> help?
>>
>> thanks,
>> Mark
>>
>>  > sessionInfo()
>> R version 2.6.1 (2007-11-26)
>> x86_64-unknown-linux-gnu
>>
>> locale:
>> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>
>> other attached packages:
>> [1] Rgraphviz_1.16.0 graph_1.16.1
>>
>> loaded via a namespace (and not attached):
>> [1] cluster_1.11.9 tools_2.6.1
>> --
>>
>> Mark W. Kimpel MD  ** Neuroinformatics ** Dept. of Psychiatry
>> Indiana University School of Medicine
>>
>> 15032 Hunter Court, Westfield, IN  46074
>>
>> (317) 490-5129 Work, & Mobile & VoiceMail
>> (317) 204-4202 Home (no voice mail please)
>>
>> mwkimpel<at>gmail<dot>com
>>
>> _______________________________________________
>> Bioconductor mailing list
>> Bioconductor at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/bioconductor
>> Search the archives:
>> http://news.gmane.org/gmane.science.biology.informatics.conductor
>>
> 
>



More information about the Bioconductor mailing list