How to adjust plots generated using psygenet2r?
0
0
Entering edit mode
marinaw ▴ 20
@9c8b15cf
Last seen 11 months ago
Canada

Hi all,

I'm using the psygenet2r package to generate plots as the one attached. Does anyone have any idea how to adjust the spacing around nodes/label position/label sizing/colour of node per disease? I'd like to make this plot a little easier on the eyes.

Thanks in advance!

genesOfInterest <- c() ...... # list of genes removed since it's long

m1 <- psygenetGene(
  gene     = genesOfInterest, 
  database = "ALL",
  verbose  = TRUE)

m1
plot( m1 )

enter image description here

psygenet2r • 619 views
ADD COMMENT
0
Entering edit mode

It's a base R plot, so you can not modify it post-generation. Running the psygenetGene doc example...

library(psygenet2r)
data(qr, package = "psygenet2r")
p <- plot(qr, type = 'GDCA network')

...class(p) gives me DataGeNET.Psy. So if you check out ?'plot,DataGeNET.Psy,ANY-method' (' should be back-ticks, but I can't get this working here...) you'll find some options to control plotting aesthetics.

ADD REPLY

Login before adding your answer.

Traffic: 324 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6