polarProjection,PathwaySpace-method | R Documentation |
polarProjection
implements a convolution algorithm
to project signals across a 2D-coordinate system.
## S4 method for signature 'PathwaySpace'
polarProjection(
ps,
k = 8,
pdist = 0.5,
theta = 180,
directional = FALSE,
rescale = TRUE,
verbose = TRUE,
decay.fun = signalDecay(),
aggregate.fun = signalAggregation(),
kns = deprecated()
)
ps |
A PathwaySpace class object. |
k |
A single positive integer determining the k-top signals in the signal convolution operation. |
pdist |
A term (in |
theta |
Angle of projection (degrees in |
directional |
If directional edges are available, this argument can be used to orientate the signal projection on directed graphs. |
rescale |
A single logical value indicating whether to rescale
the signal. If the signal |
verbose |
A single logical value specifying to display detailed
messages (when |
decay.fun |
A signal decay function. Available options include
'Weibull', 'exponential', and 'linear' (see |
aggregate.fun |
A function used to aggregate the projected signals.
It must be provided as a unary function, e.g., |
kns |
Deprecated from PathwaySpace 1.0.1; use 'k' instead. |
A preprocessed PathwaySpace class object.
Mauro Castro
buildPathwaySpace
# Load a demo igraph
data('gtoy2', package = 'RGraphSpace')
# Create a new PathwaySpace object
ps <- buildPathwaySpace(gtoy2, nrc = 100)
# note: adjust 'nrc' to increase image resolution
# Set '1s' as vertex signal
vertexSignal(ps) <- 1
# Create a 2D-landscape image
ps <- polarProjection(ps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.