Learn R Programming

rosario

The rosario package provides tools to quantify and visualize temporal niche overlap using Pianka and Czekanowski indices, and to simulate null models with the ROSARIO algorithm (Castro-Arellano et al. 2010).

Installation

You can install the development version of rosario from GitHub with:

# Install devtools if you don't have it
install.packages("devtools")

# Install rosario from GitHub
devtools::install_github("alrobles/rosario")

You can also get the official release version from CRAN

install.packages("rosario")

Learn More

Two vignettes demonstrate the full workflow and capabilities of the package:

  • Introduction to rosario
    Overview of rosario workflow.

  • Real-world example
    Demonstration of rosario workflow with a real-world dataset.

You can also access them from within R:

vignette("introduction_to_rosario")
vignette("real_world_example")

Copy Link

Version

Install

install.packages('rosario')

Monthly Downloads

125

Version

0.1.1

License

GPL (>= 3)

Maintainer

Tatiana Velásquez-Roa

Last Published

February 21st, 2026

Functions in rosario (0.1.1)

czekanowski_index

Czekanowski overlap index
rosario

Generate cyclic and mirrored permutations of a time series
rescale_matrix

Row-wise rescaling of a matrix to relative frequencies
rosario_sample

ROSARIO randomization of an assemblage matrix
temp_overlap

Assemblage-wide temporal niche segregation
ex1

Example temporal activity dataset
%>%

Pipe operator
plot_rosario

Diagram of ROSARIO null-model randomizations
get_null_model

Null-model test via ROSARIO algorithm randomization
pianka_index

Pianka's niche-overlap index
temp_overlap_plot

Plot null-model results for temporal niche overlap
vec_permutation

Cyclic permutation (rotate) a numeric vector
temp_overlap_matrix

Pairwise temporal niche-overlap matrix
temp_overlap_df

Convert a square overlap matrix to a tidy pairwise data frame