[BioC] fontsize in Rgraphviz

Li Long Li.Long at isb-sib.ch
Mon Jan 28 10:41:18 CET 2008


hits=-2.5 tests=BAYES_00,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY
X-USF-Spam-Flag: NO


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