Description Usage Arguments Details Author(s) References See Also Examples
Plotting function for MNS objects. This function implements plotting for either population networks, high variable networks or subject-specific networks.
1 2 |
x |
MNS object |
view |
Plotting view. This argument defines which networks are plotted. Three options are "pop": plot population network, "var": plot network of variable edges, "sub": plot subject-specific networks |
subID |
If view="sub", subID indicates which subjects networks should be plotted. |
... |
Additional arguments to pass to plot function |
Plotting function for MNS objects. Can be used to plot simulated networks or results obtained from running
MNS algorithm.
Note that if networks are simulated using the "Danaher"
method then only subject-specific networks can be plotted (i.e., we require view="sub"
)
Ricardo Pio monti
Monti, R., Anagnostopolus, C., Montana, G. "Inferring brain connectivity networks from functional MRI data via mixed neighbourhood selection", arXiv, 2015
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | set.seed(1)
N=4
Net = gen.Network(method = "cohort", p = 10,
Nsub = N, sparsity = .2,
REsize = 20, REprob = .5,
REnoise = 1, Nobs = 10)
## Not run:
# can plot simulated networks:
plot.MNS(Net, view="pop")
# can also plot results from MNS algorithm:
mns = MNS(dat = Net$Data, lambda_pop = .1, lambda_random = .1, parallel = TRUE)
plot.MNS(mns) # plot population network
plot.MNS(mns, view="var") # plot variance network
plot.MNS(mns, view="sub") # plot subject networks (note red edges here are variable edges!)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.