polar_graph: Plotting a polar graph

View source: R/polar_graph.R

polar_graphR Documentation

Plotting a polar graph

Description

This function plots the polar graph of a bipartite network and the histograms of kshell kradius and kdegree

Usage

polar_graph(red, directorystr = "data/", plotsdir = "plot_results/polar/",
  print_to_file = FALSE, pshowtext = FALSE, show_histograms = TRUE,
  glabels = c("Plant", "Pollinator"), gshortened = c("pl", "pol"),
  lsize_title = 22, lsize_axis = 16, lsize_legend = 16,
  lsize_axis_title = 16, lsize_legend_title = 16, file_name_append = "",
  print_title = TRUE, progress = NULL, printable_labels = 0)

Arguments

red

the name of the file of the interaction matrix

directorystr

the directory where the red file is stored

plotsdir

the directory where the plot is stored

print_to_file

if set to FALSE the plot is displayed in the R session window

pshowtext

auxiliar for interactive apps, do not modify

show_histograms

display the histograms if set TRUE

glabels

guild labels

gshortened

guild shortened labels

lsize_title

title label size

lsize_axis

axis label size

lsize_legend

legend label size

lsize_axis_title

axis title size

lsize_legend_title

legend label size

file_name_append

a label that the user may append to the plot file name for convenience

print_title

show title and network parameters

progress

auxiliar for interactive apps, do not modify

printable_labels

range of labeled species

Examples

polar_graph("M_PL_007.csv","data/",plotsdir="grafresults/",print_to_file = TRUE)

jgalgarra/kcorebip documentation built on Jan. 12, 2024, 11:47 p.m.