powered by
Takes the output from other functions (including PredictLinks()) to visualise the fit to the data and predictions of missing links.
PredictLinks()
PlotFit(list, Matrix_to_plot, OrderBy = "Default", addDots = TRUE, title = NULL, Combine = "+", RemoveTP = FALSE, GuidesOff = TRUE)
A list-format network (output from xxx)
Which matrix / matrices to plot. One or more of 'C_def','C', 'M', 'B', 'SBM'
How to order the plot. One of 'Default','Degree','Manual', 'LatentTrait','SBM', 'AsPerMatrix'
Should dots be added to show observations. TRUE, FALSE or 'Size', to plot by interaction strength
A title. By default it will use the value of Matrix_to_plot
How should multiple matrices be combined. Either '+' which averages them (default), or '*' which multiples
Should true positives be set to NA in order to highlight differences in predictions. Default is FALSE
Should the legends be switched off. Defaults to TRUE
A ggplot object, which by default will print to the device, but can be added to make further tweaks
See the vignette for a more through description and examples.
# NOT RUN { # } # NOT RUN { data(Safariland, package = 'bipartite') Predictions<- PredictLinks(Safariland) PlotFit(Predictions, Matrix_to_plot = 'SBM') # } # NOT RUN { # } # NOT RUN { # }
Run the code above in your browser using DataLab