| Title: | Relative Importance Factor Analysis |
|---|---|
| Description: | Tools for estimating, comparing, and visualizing Relative Importance Factor (RIF) indices based on rank-frequency distributions and discrete power-law models. The package provides reproducible workflows for data preparation, model fitting, goodness-of-fit assessment, bootstrap inference, and publication-ready outputs. The implemented methodology is described in Llinas et al. (2026) <doi:10.3390/math14060966>. |
| Authors: | Humberto J. Llinás M. [aut, cre], Humberto J. Llinás S. [aut], Javier A. De la Hoz M. [aut], Brian J. Llinás M. [aut], José J. Padilla [aut] |
| Maintainer: | Humberto J. Llinás M. <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.9.3 |
| Built: | 2026-10-12 10:11:23 UTC |
| Source: | https://github.com/cran/RIFanalysis |
A named list with two example data frames for workflows that use a type variable. Each data frame contains type labels, factor labels, and observed counts.
data(data_by_type)data(data_by_type)
A list with two data frames:
Group 1 data with columns type1, factor1, factor_small1, and count1.
Group 2 data with columns type2, factor2, factor_small2, and count2.
A named list with two example data frames for workflows that do not use a type variable. Each data frame contains factor labels and observed counts.
data(data_no_type)data(data_no_type)
A list with two data frames:
Group 1 data with columns factor, factor_small, and count.
Group 2 data with columns factor, factor_small, and count.
Exports RIF analyses, RIF results, comparative RIF results, or Zipf tables
to an Excel workbook. Zipf tables are exported with one consolidated
ZIPF_ALL sheet and one additional sheet per type.
export_rif_excel(x, file, overwrite = TRUE)export_rif_excel(x, file, overwrite = TRUE)
x |
An object of class |
file |
Output Excel file path. |
overwrite |
Logical. Should existing files be overwritten? |
The output file path, invisibly.
Saves one or more RIF plots as PNG and/or PDF files.
export_rif_plots( plots, output_dir, file_prefix = "rif", formats = "png", width = 8, height = 6, units = "in", dpi = 600, overwrite = TRUE )export_rif_plots( plots, output_dir, file_prefix = "rif", formats = "png", width = 8, height = 6, units = "in", dpi = 600, overwrite = TRUE )
plots |
A |
output_dir |
Output directory. |
file_prefix |
Prefix used for output filenames. |
formats |
Output format or formats. Options are |
width |
Plot width. |
height |
Plot height. |
units |
Units for |
dpi |
Resolution used for PNG output. |
overwrite |
Logical. Should existing files be overwritten? |
A character vector with the output file paths, invisibly.
Builds and exports RIF matrix and network plots from rif_results or
rif_compare_results objects. File names are generated automatically from
the selected group tag, type, method tag, plot kind, and scope.
export_rif_visuals( x, output_dir, scope = c("auto", "individual", "combined", "both"), plot_types = c("matrix", "network"), methods = NULL, types = NULL, groups = NULL, formats = "png", file_prefix = "rif", matrix_width = 10, matrix_height = 7.5, network_width = 10, network_height = 7.5, combined_matrix_width = 16, combined_matrix_height = 7.2, combined_network_width = 16, combined_network_height = 7.6, units = "in", dpi = 600, overwrite = TRUE, save = TRUE, matrix_args = list(), network_args = list() )export_rif_visuals( x, output_dir, scope = c("auto", "individual", "combined", "both"), plot_types = c("matrix", "network"), methods = NULL, types = NULL, groups = NULL, formats = "png", file_prefix = "rif", matrix_width = 10, matrix_height = 7.5, network_width = 10, network_height = 7.5, combined_matrix_width = 16, combined_matrix_height = 7.2, combined_network_width = 16, combined_network_height = 7.6, units = "in", dpi = 600, overwrite = TRUE, save = TRUE, matrix_args = list(), network_args = list() )
x |
An object of class |
output_dir |
Output directory. |
scope |
Plot scope. |
plot_types |
Plot types to export. Options are |
methods |
Optional methods to include. If |
types |
Optional types to include. If |
groups |
Optional groups to include for individual plots. If |
formats |
Output format or formats. Options are |
file_prefix |
Prefix used for output file names. |
matrix_width |
Matrix plot width. |
matrix_height |
Matrix plot height. |
network_width |
Network plot width. |
network_height |
Network plot height. |
combined_matrix_width |
Combined matrix panel width. |
combined_matrix_height |
Combined matrix panel height. |
combined_network_width |
Combined network panel width. |
combined_network_height |
Combined network panel height. |
units |
Units for plot width and height. |
dpi |
Resolution used for PNG output. |
overwrite |
Logical. Should existing files be overwritten? |
save |
Logical. Save plots to disk? |
matrix_args |
Named list of matrix-layer arguments. Common entries are
|
network_args |
Named list of network-layer arguments. Common entries are
|
export_rif_visuals() builds plots through the layered RIF plotting API.
Individual plots are created from rif_plot() objects, and comparative
plots are created from rif_panel() objects. Matrix arguments control the
matrix layer; network arguments control the network layer. In network plots,
wrap_width controls the short node labels from label_col, while
factor_name_wrap_width controls the longer external factor names from
factor_name_col.
A list of class rif_visual_export with the plot plan, plot objects,
and exported file paths.
Imports RIF computation results, comparative RIF results, or Zipf tables from
an Excel workbook created with export_rif_excel().
import_rif_excel(file)import_rif_excel(file)
file |
Input Excel file path. |
An object of class rif_results, rif_compare_results, or
rif_zipf_tbl.
Creates a lower-triangular matrix of pairwise Relative Importance Factor (RIF) values from RIF result tables.
plot_matrix( data, method = c("MLE-KS", "Bootstrapping"), group = NULL, type = NULL, label_col = "Factor_label", factor_s_label_col = NULL, factor_r_label_col = NULL, factor_s_col = "factor_s", factor_r_col = "factor_r", rif_col = "RIF", title = NULL, subtitle = NULL, caption = NULL, x_title = "s: Concept at rank s", y_title = "r: Concept at rank r", legend_position = "right", label_size = 3.8, axis_text_size = 10, axis_title_size = 12, title_size = 16, subtitle_size = 12, caption_size = 9, matrix_margin_top = 10, matrix_margin_right = 5, matrix_margin_bottom = 10, matrix_margin_left = 15, title_margin_bottom = 10, x_title_margin_top = 12, y_title_margin_right = 0, legend_title_size = NULL, legend_label_size = 10, show_matrix_factor_names = FALSE, factor_s_name_col = "factor_s_name", factor_r_name_col = "factor_r_name", matrix_factor_name_wrap_width = 14 )plot_matrix( data, method = c("MLE-KS", "Bootstrapping"), group = NULL, type = NULL, label_col = "Factor_label", factor_s_label_col = NULL, factor_r_label_col = NULL, factor_s_col = "factor_s", factor_r_col = "factor_r", rif_col = "RIF", title = NULL, subtitle = NULL, caption = NULL, x_title = "s: Concept at rank s", y_title = "r: Concept at rank r", legend_position = "right", label_size = 3.8, axis_text_size = 10, axis_title_size = 12, title_size = 16, subtitle_size = 12, caption_size = 9, matrix_margin_top = 10, matrix_margin_right = 5, matrix_margin_bottom = 10, matrix_margin_left = 15, title_margin_bottom = 10, x_title_margin_top = 12, y_title_margin_right = 0, legend_title_size = NULL, legend_label_size = 10, show_matrix_factor_names = FALSE, factor_s_name_col = "factor_s_name", factor_r_name_col = "factor_r_name", matrix_factor_name_wrap_width = 14 )
data |
An object of class |
method |
Estimation method used when |
group |
Optional group value used to filter |
type |
Optional type value used to filter |
label_col |
Default column used as factor labels on both matrix axes
when building the matrix from a RIF result table. Use a compact label
column, such as |
factor_s_label_col |
Optional column used for labels on the rank |
factor_r_label_col |
Optional column used for labels on the rank |
factor_s_col |
Column with the factor at rank s for pairwise data. |
factor_r_col |
Column with the factor at rank r for pairwise data. |
rif_col |
Column with RIF values. |
title |
Plot title. |
subtitle |
Plot subtitle. |
caption |
Plot caption. |
x_title |
Title for the x-axis. |
y_title |
Title for the y-axis. |
legend_position |
Legend position. |
label_size |
Size of RIF labels inside cells. |
axis_text_size |
Size of axis text. |
axis_title_size |
Size of axis titles. |
title_size |
Size of plot title. |
subtitle_size |
Size of plot subtitle. |
caption_size |
Size of plot caption. |
matrix_margin_top |
Top plot margin. |
matrix_margin_right |
Right plot margin. |
matrix_margin_bottom |
Bottom plot margin. |
matrix_margin_left |
Left plot margin. |
title_margin_bottom |
Bottom margin for the title. |
x_title_margin_top |
Top margin for the x-axis title. |
y_title_margin_right |
Right margin for the y-axis title. |
legend_title_size |
Size of legend title. |
legend_label_size |
Size of legend labels. |
show_matrix_factor_names |
Logical. Show longer factor names in axis tick labels? |
factor_s_name_col |
Optional source-factor long-name column. |
factor_r_name_col |
Optional target-factor long-name column. |
matrix_factor_name_wrap_width |
Wrap width for longer factor names and compact axis tick labels. |
Cells are shown on and below the main diagonal, with rank r on the y-axis
and rank s on the x-axis. plot_matrix() accepts either ranked RIF result
tables or already pairwise data. Internal helper functions build and format
the pairwise data; these helpers are intentionally not exported. The layered
API equivalent is rif_plot() followed by rif_layer_matrix(),
rif_legend(), and rif_render().
A ggplot object.
Creates a directed network of pairwise Relative Importance Factor (RIF) values. The network uses RIF categories for edge colors, RIF values for edge width, and rank values for node size.
plot_network( data, method = c("MLE-KS", "Bootstrapping"), group = NULL, type = NULL, label_col = "Factor_label", factor_name_col = "Factor_small", from_col = "factor_s", to_col = "factor_r", rif_col = "RIF", rank_from_col = "rank_s", rank_to_col = "rank_r", title = NULL, subtitle = NULL, caption = NULL, title_size = 16, subtitle_size = 12, caption_size = 9, title_margin_bottom = 0, remove_self_loops = TRUE, node_size_range = c(5, 24), edge_width_range = c(0.6, 4), node_color = "#9BE7A1", show_edge_labels = TRUE, edge_label_size = 3.5, rotate_edge_labels = TRUE, edge_label_rotation_mode = c("readable", "direction"), edge_label_position = 0.58, edge_label_offset = 0.04, show_manual_legend = FALSE, show_node_labels = TRUE, node_label_size = 3.7, show_network_factor_names = TRUE, factor_names = NULL, factor_name_s_col = NULL, factor_name_r_col = NULL, factor_name_size = 4, factor_name_offset = 0.15, factor_name_wrap_width = 14, factor_name_fontface = "bold", factor_name_color = "black", factor_name_nudge = NULL, wrap_labels = TRUE, wrap_width = 10, label_replacements = NULL, node_adjustments = NULL, label_nudge = NULL, edge_label_nudge = NULL, coord_x_pad = 0.35, coord_y_pad = 0.15, network_margin_top = 10, network_margin_right = 5, network_margin_bottom = 10, network_margin_left = 15, manual_legend_height = 0.14 )plot_network( data, method = c("MLE-KS", "Bootstrapping"), group = NULL, type = NULL, label_col = "Factor_label", factor_name_col = "Factor_small", from_col = "factor_s", to_col = "factor_r", rif_col = "RIF", rank_from_col = "rank_s", rank_to_col = "rank_r", title = NULL, subtitle = NULL, caption = NULL, title_size = 16, subtitle_size = 12, caption_size = 9, title_margin_bottom = 0, remove_self_loops = TRUE, node_size_range = c(5, 24), edge_width_range = c(0.6, 4), node_color = "#9BE7A1", show_edge_labels = TRUE, edge_label_size = 3.5, rotate_edge_labels = TRUE, edge_label_rotation_mode = c("readable", "direction"), edge_label_position = 0.58, edge_label_offset = 0.04, show_manual_legend = FALSE, show_node_labels = TRUE, node_label_size = 3.7, show_network_factor_names = TRUE, factor_names = NULL, factor_name_s_col = NULL, factor_name_r_col = NULL, factor_name_size = 4, factor_name_offset = 0.15, factor_name_wrap_width = 14, factor_name_fontface = "bold", factor_name_color = "black", factor_name_nudge = NULL, wrap_labels = TRUE, wrap_width = 10, label_replacements = NULL, node_adjustments = NULL, label_nudge = NULL, edge_label_nudge = NULL, coord_x_pad = 0.35, coord_y_pad = 0.15, network_margin_top = 10, network_margin_right = 5, network_margin_bottom = 10, network_margin_left = 15, manual_legend_height = 0.14 )
data |
An object of class |
method |
Estimation method used when |
group |
Optional group value used to filter |
type |
Optional type value used to filter |
label_col |
Column used as short node labels when building the network
from a RIF result table. These labels are drawn near the nodes and are
wrapped with |
factor_name_col |
Optional column used for longer external factor names
when building pairwise data from a RIF result table. These labels are drawn
outside the nodes and are wrapped with |
from_col |
Column with the source factor for pairwise data. |
to_col |
Column with the target factor for pairwise data. |
rif_col |
Column with RIF values. |
rank_from_col |
Optional source rank column for pairwise data. |
rank_to_col |
Optional target rank column for pairwise data. |
title |
Plot title. |
subtitle |
Plot subtitle. |
caption |
Plot caption. |
title_size |
Size of plot title. |
subtitle_size |
Size of plot subtitle. |
caption_size |
Size of plot caption. |
title_margin_bottom |
Bottom margin for the title. |
remove_self_loops |
Logical. Remove links where source and target are the same node? |
node_size_range |
Numeric range for node sizes. The range is reversed so higher-ranked factors are drawn larger. |
edge_width_range |
Numeric range for edge widths. Increase the second value for thicker high-RIF links. |
node_color |
Node color. |
show_edge_labels |
Logical. Show RIF values on edges? |
edge_label_size |
Edge label size. |
rotate_edge_labels |
Logical. Rotate edge labels with edge direction? |
edge_label_rotation_mode |
Rotation mode for edge labels. Options are
|
edge_label_position |
Relative position of labels along each edge. |
edge_label_offset |
Perpendicular offset for edge labels. |
show_manual_legend |
Logical. Add the manual legend for rank, edge strength, and RIF categories? |
show_node_labels |
Logical. Show node labels? |
node_label_size |
Node label size. |
show_network_factor_names |
Logical. Show longer factor names outside the network? The coordinate limits include these external labels to avoid clipping. |
factor_names |
Optional named character vector with longer factor names. |
factor_name_s_col |
Optional source-factor long-name column. |
factor_name_r_col |
Optional target-factor long-name column. |
factor_name_size |
Factor name label size. |
factor_name_offset |
Distance from each node to its longer factor name. |
factor_name_wrap_width |
Wrap width for longer external factor names
from |
factor_name_fontface |
Font face for longer factor names. |
factor_name_color |
Color for longer factor names. |
factor_name_nudge |
Named list with x/y nudges for longer factor names. |
wrap_labels |
Logical. Wrap node labels? |
wrap_width |
Wrap width for short node labels from |
label_replacements |
Optional named character vector with replacement node labels. |
node_adjustments |
Named list with x/y adjustments for node positions. |
label_nudge |
Named list with x/y nudges for node labels. |
edge_label_nudge |
Named list with x/y nudges for edge labels. Names
must use the |
coord_x_pad |
Extra x padding around the network and external labels. |
coord_y_pad |
Extra y padding around the network and external labels. |
network_margin_top |
Top plot margin. |
network_margin_right |
Right plot margin. |
network_margin_bottom |
Bottom plot margin. |
network_margin_left |
Left plot margin. |
manual_legend_height |
Relative height of the manual legend. |
plot_network() accepts either ranked RIF result tables or already pairwise
data. Internal helper functions build the pairwise edges and node metadata;
these helpers are intentionally not exported.
A ggplot object or a cowplot object when
show_manual_legend = TRUE.
Creates a Zipf plot comparing observed counts with theoretical Zipf
counts computed by rif_zipf(). Labels can optionally be added.
plot_zipf( x, group = NULL, type = NULL, label_col = NULL, title = "Observed and theoretical Zipf distributions", x_title = "Rank", y_title = "Count", legend_title = "Distribution:", label_size = 3.5, label_nudge_x = 0, label_nudge_y = 0, label_force = 1, show_observed = TRUE, show_theoretical = TRUE )plot_zipf( x, group = NULL, type = NULL, label_col = NULL, title = "Observed and theoretical Zipf distributions", x_title = "Rank", y_title = "Count", legend_title = "Distribution:", label_size = 3.5, label_nudge_x = 0, label_nudge_y = 0, label_force = 1, show_observed = TRUE, show_theoretical = TRUE )
x |
An object of class |
group |
Optional group value used to filter |
type |
Optional type value used to filter |
label_col |
Optional column used for labels. Use |
title |
Plot title. |
x_title |
X-axis title. |
y_title |
Y-axis title. |
legend_title |
Legend title. |
label_size |
Label size. |
label_nudge_x |
Horizontal adjustment for labels. |
label_nudge_y |
Vertical adjustment for labels. |
label_force |
Repulsion force used by |
show_observed |
Logical. Show observed counts. |
show_theoretical |
Logical. Show theoretical Zipf counts. |
A ggplot object.
df <- data.frame( Factor = c("A", "B", "C", "D", "E", "F"), Count = c(100, 60, 35, 20, 12, 8) ) rif_data <- rif_prepare( data = df, factor_col = "Factor", count_col = "Count", prefix = "T" ) zipf_tbl <- rif_zipf(rif_data) plot_zipf(zipf_tbl) plot_zipf( zipf_tbl, label_col = "factor_label" )df <- data.frame( Factor = c("A", "B", "C", "D", "E", "F"), Count = c(100, 60, 35, 20, 12, 8) ) rif_data <- rif_prepare( data = df, factor_col = "Factor", count_col = "Count", prefix = "T" ) zipf_tbl <- rif_zipf(rif_data) plot_zipf(zipf_tbl) plot_zipf( zipf_tbl, label_col = "factor_label" )
Prints a compact summary of a RIF analysis object.
## S3 method for class 'rif_analysis' print(x, ...)## S3 method for class 'rif_analysis' print(x, ...)
x |
Object of class |
... |
Additional arguments. |
x, invisibly.
Prints a compact summary of a RIF power-law fit.
## S3 method for class 'rif_powerlaw_fit' print(x, ...)## S3 method for class 'rif_powerlaw_fit' print(x, ...)
x |
Object of class |
... |
Additional arguments. |
x, invisibly.
Prints a compact summary of RIF result tables.
## S3 method for class 'rif_results' print(x, ...)## S3 method for class 'rif_results' print(x, ...)
x |
Object of class |
... |
Additional arguments. |
x, invisibly.
Prints a compact summary of prepared RIF data.
## S3 method for class 'rif_tbl' print(x, ...)## S3 method for class 'rif_tbl' print(x, ...)
x |
An object of class |
... |
Additional arguments. |
x, invisibly.
Prints a compact summary of a RIF Zipf table.
## S3 method for class 'rif_zipf_tbl' print(x, ...)## S3 method for class 'rif_zipf_tbl' print(x, ...)
x |
An object of class |
... |
Additional arguments. |
x, invisibly.
Fits the power-law model and bootstrap summaries for prepared RIF data. If the data contains multiple types, each type is fitted independently.
rif_analysis( data, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw") )rif_analysis( data, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw") )
data |
An object of class |
no_of_sims |
Number of bootstrap simulations. |
threads |
Number of threads for the bootstrap routine. |
seed |
Random seed. |
bootstrap_engine |
Bootstrap engine. |
An object of class rif_analysis.
Creates comparative RIF tables from two rif_compute_results()
objects for subsequent export, visualization, and analysis.
rif_compare_results(rif_results1, rif_results2)rif_compare_results(rif_results1, rif_results2)
rif_results1 |
An object of class |
rif_results2 |
An object of class |
An object of class rif_compare_results.
Computes the Relative Importance Factor (RIF) table from a basic RIF analysis object, using the fitted alpha and xmin values for each type.
rif_compute(x, method = c("MLE-KS", "Bootstrapping"), digits = 3)rif_compute(x, method = c("MLE-KS", "Bootstrapping"), digits = 3)
x |
An object of class |
method |
Estimation method. Options are |
digits |
Number of decimal places. |
An object of class rif_result_tbl.
df <- data.frame( Factor = c("A", "B", "C", "D", "E", "F"), Count = c(100, 60, 35, 20, 12, 8) ) rif_data <- rif_prepare( data = df, factor_col = "Factor", count_col = "Count", prefix = "T" ) res <- rif_analysis( data = rif_data, no_of_sims = 10, bootstrap_engine = "manual" ) rif_compute(res, method = "MLE-KS")df <- data.frame( Factor = c("A", "B", "C", "D", "E", "F"), Count = c(100, 60, 35, 20, 12, 8) ) rif_data <- rif_prepare( data = df, factor_col = "Factor", count_col = "Count", prefix = "T" ) res <- rif_analysis( data = rif_data, no_of_sims = 10, bootstrap_engine = "manual" ) rif_compute(res, method = "MLE-KS")
Computes RIF tables for MLE-KS and Bootstrapping.
rif_compute_results(x, digits = 3)rif_compute_results(x, digits = 3)
x |
An object of class |
digits |
Number of decimal places. |
An object of class rif_results.
Estimates bootstrap summaries for a discrete power-law model.
rif_fit_bootstrap( counts, model = NULL, no_of_sims = 1000, threads = 1, seed = 123, engine = c("manual", "poweRlaw") )rif_fit_bootstrap( counts, model = NULL, no_of_sims = 1000, threads = 1, seed = 123, engine = c("manual", "poweRlaw") )
counts |
Numeric vector of count values. |
model |
Optional fitted |
no_of_sims |
Number of bootstrap simulations. |
threads |
Number of threads. |
seed |
Random seed. |
engine |
Bootstrap engine. |
A list with bootstrap table and raw bootstrap results.
Fits a discrete power-law model and returns MLE-KS summary statistics.
rif_fit_mle_ks(counts)rif_fit_mle_ks(counts)
counts |
Numeric vector of count values. |
A list with model, estimate, and summary table.
Fits MLE-KS and bootstrap power-law summaries for RIF count data.
rif_fit_powerlaw( data, count_col = "count", group_col = "group", group = NULL, type_col = "type", type = NULL, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw") )rif_fit_powerlaw( data, count_col = "count", group_col = "group", group = NULL, type_col = "type", type = NULL, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw") )
data |
A |
count_col |
Count column name. |
group_col |
Optional group column name. |
group |
Optional group value. |
type_col |
Optional type column name. |
type |
Optional type value. |
no_of_sims |
Number of bootstrap simulations. |
threads |
Number of threads. |
seed |
Random seed. |
bootstrap_engine |
Bootstrap engine. |
An object of class rif_powerlaw_fit.
Stores shared plot labels that can be used by later RIF plot layers.
rif_labels(x, title = NULL, subtitle = NULL, caption = NULL)rif_labels(x, title = NULL, subtitle = NULL, caption = NULL)
x |
A |
title |
Plot title. |
subtitle |
Plot subtitle. |
caption |
Plot caption. |
A rif_plot object.
Updates edge-label settings for a stored network layer.
rif_layer_edge_labels( x, show = NULL, size = NULL, position = NULL, offset = NULL, rotate = NULL, rotation_mode = NULL, nudge = NULL )rif_layer_edge_labels( x, show = NULL, size = NULL, position = NULL, offset = NULL, rotate = NULL, rotation_mode = NULL, nudge = NULL )
x |
A |
show |
Logical. Show RIF values on edges? |
size |
Edge label size. |
position |
Relative position of labels along each edge. |
offset |
Perpendicular offset for edge labels. |
rotate |
Logical. Rotate edge labels with edge direction? |
rotation_mode |
Rotation mode for edge labels. Options are |
nudge |
Named list with x/y nudges for edge labels. |
A rif_plot or rif_panel object.
Updates edge settings for a stored network layer.
rif_layer_edges(x, width_range = NULL, width_by = NULL, color_by = NULL)rif_layer_edges(x, width_range = NULL, width_by = NULL, color_by = NULL)
x |
A |
width_range |
Numeric range for edge widths. |
width_by |
Edge width variable. Currently only |
color_by |
Edge color variable. Currently only |
A rif_plot or rif_panel object.
Stores a RIF matrix layer specification in a rif_plot or rif_panel
object. Use rif_render() to build the final plot.
rif_layer_matrix( x, label_col = "Factor_label", factor_s_label_col = NULL, factor_r_label_col = NULL, factor_s_col = "factor_s", factor_r_col = "factor_r", rif_col = "RIF", title = NULL, subtitle = NULL, caption = NULL, x_title = "s: Concept at rank s", y_title = "r: Concept at rank r", legend_position = NULL, label_size = NULL, axis_text_size = NULL, axis_title_size = NULL, title_size = NULL, subtitle_size = NULL, caption_size = NULL, matrix_margin_top = NULL, matrix_margin_right = NULL, matrix_margin_bottom = NULL, matrix_margin_left = NULL, title_margin_bottom = 10, x_title_margin_top = 12, y_title_margin_right = 12, show_matrix_factor_names = FALSE, factor_s_name_col = "factor_s_name", factor_r_name_col = "factor_r_name", matrix_factor_name_wrap_width = 14 )rif_layer_matrix( x, label_col = "Factor_label", factor_s_label_col = NULL, factor_r_label_col = NULL, factor_s_col = "factor_s", factor_r_col = "factor_r", rif_col = "RIF", title = NULL, subtitle = NULL, caption = NULL, x_title = "s: Concept at rank s", y_title = "r: Concept at rank r", legend_position = NULL, label_size = NULL, axis_text_size = NULL, axis_title_size = NULL, title_size = NULL, subtitle_size = NULL, caption_size = NULL, matrix_margin_top = NULL, matrix_margin_right = NULL, matrix_margin_bottom = NULL, matrix_margin_left = NULL, title_margin_bottom = 10, x_title_margin_top = 12, y_title_margin_right = 12, show_matrix_factor_names = FALSE, factor_s_name_col = "factor_s_name", factor_r_name_col = "factor_r_name", matrix_factor_name_wrap_width = 14 )
x |
A |
label_col |
Default column used as factor labels on both matrix axes
when building the matrix from a RIF result table. Use a compact label
column, such as |
factor_s_label_col |
Optional column used for labels on the rank |
factor_r_label_col |
Optional column used for labels on the rank |
factor_s_col |
Column with the factor at rank s for pairwise data. |
factor_r_col |
Column with the factor at rank r for pairwise data. |
rif_col |
Column with RIF values. |
title |
Plot title. |
subtitle |
Plot subtitle. |
caption |
Plot caption. |
x_title |
Title for the x-axis. |
y_title |
Title for the y-axis. |
legend_position |
Legend position. |
label_size |
Size of RIF labels inside cells. |
axis_text_size |
Size of axis text. |
axis_title_size |
Size of axis titles. |
title_size |
Size of plot title. |
subtitle_size |
Size of plot subtitle. |
caption_size |
Size of plot caption. |
matrix_margin_top |
Top plot margin. |
matrix_margin_right |
Right plot margin. |
matrix_margin_bottom |
Bottom plot margin. |
matrix_margin_left |
Left plot margin. |
title_margin_bottom |
Bottom margin for the title. |
x_title_margin_top |
Top margin for the x-axis title. |
y_title_margin_right |
Right margin for the y-axis title. |
show_matrix_factor_names |
Logical. Show longer factor names in axis tick labels? |
factor_s_name_col |
Optional source-factor long-name column. |
factor_r_name_col |
Optional target-factor long-name column. |
matrix_factor_name_wrap_width |
Wrap width for longer factor names and compact axis tick labels. |
When x is a rif_panel, matrix text sizes use panel-oriented defaults.
Values supplied directly to rif_layer_matrix() or later through
rif_matrix_layout() override those defaults.
A rif_plot or rif_panel object.
Stores a RIF network layer specification in a rif_plot or rif_panel
object. Use rif_render() to build the final plot.
rif_layer_network( x, layout = "circle", label_col = "Factor_label", factor_name_col = "Factor_small", from_col = "factor_s", to_col = "factor_r", rif_col = "RIF", rank_from_col = "rank_s", rank_to_col = "rank_r", title = NULL, subtitle = NULL, caption = NULL, title_size = NULL, subtitle_size = NULL, caption_size = NULL, title_margin_bottom = 0, remove_self_loops = TRUE, node_size_range = NULL, edge_width_range = c(0.6, 4), node_color = "#9BE7A1", show_edge_labels = TRUE, edge_label_size = 3.5, rotate_edge_labels = TRUE, edge_label_rotation_mode = c("readable", "direction"), edge_label_position = 0.58, edge_label_offset = 0.04, show_manual_legend = NULL, show_node_labels = TRUE, node_label_size = NULL, show_network_factor_names = TRUE, factor_names = NULL, factor_name_s_col = NULL, factor_name_r_col = NULL, factor_name_size = NULL, factor_name_offset = 0.15, factor_name_wrap_width = 14, factor_name_fontface = "bold", factor_name_color = "black", factor_name_nudge = NULL, wrap_labels = TRUE, wrap_width = 10, label_replacements = NULL, node_adjustments = NULL, label_nudge = NULL, edge_label_nudge = NULL, coord_x_pad = 0.35, coord_y_pad = 0.15, network_margin_top = NULL, network_margin_right = NULL, network_margin_bottom = NULL, network_margin_left = NULL, manual_legend_height = 0.14 )rif_layer_network( x, layout = "circle", label_col = "Factor_label", factor_name_col = "Factor_small", from_col = "factor_s", to_col = "factor_r", rif_col = "RIF", rank_from_col = "rank_s", rank_to_col = "rank_r", title = NULL, subtitle = NULL, caption = NULL, title_size = NULL, subtitle_size = NULL, caption_size = NULL, title_margin_bottom = 0, remove_self_loops = TRUE, node_size_range = NULL, edge_width_range = c(0.6, 4), node_color = "#9BE7A1", show_edge_labels = TRUE, edge_label_size = 3.5, rotate_edge_labels = TRUE, edge_label_rotation_mode = c("readable", "direction"), edge_label_position = 0.58, edge_label_offset = 0.04, show_manual_legend = NULL, show_node_labels = TRUE, node_label_size = NULL, show_network_factor_names = TRUE, factor_names = NULL, factor_name_s_col = NULL, factor_name_r_col = NULL, factor_name_size = NULL, factor_name_offset = 0.15, factor_name_wrap_width = 14, factor_name_fontface = "bold", factor_name_color = "black", factor_name_nudge = NULL, wrap_labels = TRUE, wrap_width = 10, label_replacements = NULL, node_adjustments = NULL, label_nudge = NULL, edge_label_nudge = NULL, coord_x_pad = 0.35, coord_y_pad = 0.15, network_margin_top = NULL, network_margin_right = NULL, network_margin_bottom = NULL, network_margin_left = NULL, manual_legend_height = 0.14 )
x |
A |
layout |
Network layout passed to the network layer. Currently
|
label_col |
Column used as short node labels when building the network
from a RIF result table. These labels are drawn near the nodes and are
wrapped with |
factor_name_col |
Optional column used for longer external factor names
when building pairwise data from a RIF result table. These labels are drawn
outside the nodes and are wrapped with |
from_col |
Column with the source factor for pairwise data. |
to_col |
Column with the target factor for pairwise data. |
rif_col |
Column with RIF values. |
rank_from_col |
Optional source rank column for pairwise data. |
rank_to_col |
Optional target rank column for pairwise data. |
title |
Plot title. |
subtitle |
Plot subtitle. |
caption |
Plot caption. |
title_size |
Size of plot title. |
subtitle_size |
Size of plot subtitle. |
caption_size |
Size of plot caption. |
title_margin_bottom |
Bottom margin for the title. |
remove_self_loops |
Logical. Remove links where source and target are the same node? |
node_size_range |
Numeric range for node sizes. The range is reversed so higher-ranked factors are drawn larger. |
edge_width_range |
Numeric range for edge widths. Increase the second value for thicker high-RIF links. |
node_color |
Node color. |
show_edge_labels |
Logical. Show RIF values on edges? |
edge_label_size |
Edge label size. |
rotate_edge_labels |
Logical. Rotate edge labels with edge direction? |
edge_label_rotation_mode |
Rotation mode for edge labels. Options are
|
edge_label_position |
Relative position of labels along each edge. |
edge_label_offset |
Perpendicular offset for edge labels. |
show_manual_legend |
Logical. Add the manual legend for rank, edge strength, and RIF categories? |
show_node_labels |
Logical. Show node labels? |
node_label_size |
Node label size. |
show_network_factor_names |
Logical. Show longer factor names outside the network? The coordinate limits include these external labels to avoid clipping. |
factor_names |
Optional named character vector with longer factor names. |
factor_name_s_col |
Optional source-factor long-name column. |
factor_name_r_col |
Optional target-factor long-name column. |
factor_name_size |
Factor name label size. |
factor_name_offset |
Distance from each node to its longer factor name. |
factor_name_wrap_width |
Wrap width for longer external factor names
from |
factor_name_fontface |
Font face for longer factor names. |
factor_name_color |
Color for longer factor names. |
factor_name_nudge |
Named list with x/y nudges for longer factor names. |
wrap_labels |
Logical. Wrap node labels? |
wrap_width |
Wrap width for short node labels from |
label_replacements |
Optional named character vector with replacement node labels. |
node_adjustments |
Named list with x/y adjustments for node positions. |
label_nudge |
Named list with x/y nudges for node labels. |
edge_label_nudge |
Named list with x/y nudges for edge labels. Names
must use the |
coord_x_pad |
Extra x padding around the network and external labels. |
coord_y_pad |
Extra y padding around the network and external labels. |
network_margin_top |
Top plot margin. |
network_margin_right |
Right plot margin. |
network_margin_bottom |
Bottom plot margin. |
network_margin_left |
Left plot margin. |
manual_legend_height |
Relative height of the manual legend. |
When x is a rif_panel, node sizes, node-label sizes, factor-name sizes,
and plot margins use panel-oriented defaults. Values supplied directly to
rif_layer_network() or later through rif_layer_nodes(),
rif_network_labels(), or rif_network_layout() override those defaults.
wrap_width controls short node labels from label_col;
factor_name_wrap_width controls longer external factor names from
factor_name_col.
A rif_plot or rif_panel object.
Updates node settings for a stored network layer.
rif_layer_nodes(x, color = NULL, size_range = NULL, size_by = NULL)rif_layer_nodes(x, color = NULL, size_range = NULL, size_by = NULL)
x |
A |
color |
Node color. |
size_range |
Numeric range for node sizes. |
size_by |
Node size variable. Currently only |
A rif_plot or rif_panel object.
Stores shared legend settings that can be used by later RIF plot layers.
rif_legend( x, show = NULL, position = NULL, size = NULL, spacing = NULL, title_size = NULL, label_size = NULL )rif_legend( x, show = NULL, position = NULL, size = NULL, spacing = NULL, title_size = NULL, label_size = NULL )
x |
A |
show |
Logical. Should the layer show its legend? |
position |
Legend position for layers that use ggplot legends, such as
matrix plots. Common values are |
size |
Relative size reserved for panel legends or network manual legends. |
spacing |
Relative spacing between panel plots and panel legends. For individual matrix plots, this is interpreted as lines of spacing around the ggplot legend box. |
title_size |
Size of the legend title. |
label_size |
Size of the legend labels. |
A rif_plot or rif_panel object.
Updates axis and factor-name label settings for a stored matrix layer.
rif_matrix_labels( x, x_title = NULL, y_title = NULL, factor_name_wrap_width = NULL )rif_matrix_labels( x, x_title = NULL, y_title = NULL, factor_name_wrap_width = NULL )
x |
A |
x_title |
Title for the x-axis. |
y_title |
Title for the y-axis. |
factor_name_wrap_width |
Wrap width for longer factor names and compact axis tick labels. |
A rif_plot or rif_panel object.
Updates text-size and spacing settings for a stored matrix layer.
rif_matrix_layout( x, label_size = NULL, axis_text_size = NULL, axis_title_size = NULL, margin = NULL, title_margin_bottom = NULL, x_title_margin_top = NULL, y_title_margin_right = NULL )rif_matrix_layout( x, label_size = NULL, axis_text_size = NULL, axis_title_size = NULL, margin = NULL, title_margin_bottom = NULL, x_title_margin_top = NULL, y_title_margin_right = NULL )
x |
A |
label_size |
Size of RIF labels inside cells. |
axis_text_size |
Size of axis text. |
axis_title_size |
Size of axis titles. |
margin |
Numeric vector of length four for top, right, bottom, and left plot margins. |
title_margin_bottom |
Bottom margin for the title. |
x_title_margin_top |
Top margin for the x-axis title. |
y_title_margin_right |
Right margin for the y-axis title. |
A rif_plot or rif_panel object.
Updates node-label and factor-name label settings for a stored network layer.
rif_network_labels( x, show_node_labels = NULL, node_label_size = NULL, factor_names = NULL, factor_name_size = NULL, factor_name_color = NULL, factor_name_fontface = NULL, wrap_labels = NULL, wrap_width = NULL, factor_name_wrap_width = NULL, label_replacements = NULL )rif_network_labels( x, show_node_labels = NULL, node_label_size = NULL, factor_names = NULL, factor_name_size = NULL, factor_name_color = NULL, factor_name_fontface = NULL, wrap_labels = NULL, wrap_width = NULL, factor_name_wrap_width = NULL, label_replacements = NULL )
x |
A |
show_node_labels |
Logical. Show node labels? |
node_label_size |
Node label size. |
factor_names |
Optional named character vector with longer factor names. |
factor_name_size |
Factor name label size. |
factor_name_color |
Factor name label color. |
factor_name_fontface |
Factor name label font face. |
wrap_labels |
Logical. Wrap node labels? |
wrap_width |
Wrap width for node labels. |
factor_name_wrap_width |
Wrap width for longer factor names. |
label_replacements |
Optional named character vector with replacement node labels. |
A rif_plot or rif_panel object.
Updates layout and nudge settings for a stored network layer.
rif_network_layout( x, layout = NULL, node_adjustments = NULL, label_nudge = NULL, edge_label_nudge = NULL, factor_name_nudge = NULL, factor_name_offset = NULL, coord_x_pad = NULL, coord_y_pad = NULL, margin = NULL, title_margin_bottom = NULL )rif_network_layout( x, layout = NULL, node_adjustments = NULL, label_nudge = NULL, edge_label_nudge = NULL, factor_name_nudge = NULL, factor_name_offset = NULL, coord_x_pad = NULL, coord_y_pad = NULL, margin = NULL, title_margin_bottom = NULL )
x |
A |
layout |
Network layout. Defaults to |
node_adjustments |
Named list with x/y adjustments for node positions. |
label_nudge |
Named list with x/y nudges for node labels. |
edge_label_nudge |
Named list with x/y nudges for edge labels. |
factor_name_nudge |
Named list with x/y nudges for longer factor names. |
factor_name_offset |
Distance from each node to its longer factor name. |
coord_x_pad |
Extra x padding. |
coord_y_pad |
Extra y padding. |
margin |
Numeric vector of length four for top, right, bottom, and left plot margins. |
title_margin_bottom |
Bottom margin for the title. |
A rif_plot or rif_panel object.
Creates a lightweight panel specification from multiple rif_plot objects.
Later RIF layers can use this object to build one plot per specification and
combine them into a panel.
rif_panel(..., nrow = 1, ncol = NULL)rif_panel(..., nrow = 1, ncol = NULL)
... |
Named |
nrow |
Optional number of panel rows. |
ncol |
Optional number of panel columns. |
An object of class rif_panel.
Creates a lightweight plot specification that can be extended by RIF plotting layers. This object stores the input data and selection context, but does not draw a plot by itself.
rif_plot( data, method = c("MLE-KS", "Bootstrapping"), group = NULL, type = NULL )rif_plot( data, method = c("MLE-KS", "Bootstrapping"), group = NULL, type = NULL )
data |
An object accepted by RIF plot functions, such as |
method |
Estimation method. Options are |
group |
Optional group value used by later plot layers. |
type |
Optional type value used by later plot layers. |
An object of class rif_plot.
Converts a user data frame into a standardized RIF object.
rif_prepare( data, factor_col, count_col, factor_small_col = NULL, group_col = NULL, type_col = NULL, group_value = "G", type_value = "corpus_type", prefix = "F", factor_small_label_style = "inline" )rif_prepare( data, factor_col, count_col, factor_small_col = NULL, group_col = NULL, type_col = NULL, group_value = "G", type_value = "corpus_type", prefix = "F", factor_small_label_style = "inline" )
data |
A data frame. |
factor_col |
Name of the factor/concept column. |
count_col |
Name of the frequency/count column. |
factor_small_col |
Optional name of the short factor label column. |
group_col |
Optional name of the group column. |
type_col |
Optional name of the type column. |
group_value |
Group value used when |
type_value |
Type value used when |
prefix |
Prefix used to create factor labels. |
factor_small_label_style |
Style for the combined short label.
Options are |
An object of class rif_tbl.
Builds the final plot from a rif_plot or rif_panel object with a stored
layer specification.
rif_render(x)rif_render(x)
x |
A |
A ggplot object or a combined cowplot object.
Stores shared theme settings that can be used by later RIF plot layers when rendering.
rif_theme(x, title_size = NULL, subtitle_size = NULL, caption_size = NULL)rif_theme(x, title_size = NULL, subtitle_size = NULL, caption_size = NULL)
x |
A |
title_size |
Size of plot titles. |
subtitle_size |
Size of plot subtitles. |
caption_size |
Size of plot captions. |
A rif_plot or rif_panel object.
Runs the complete Z1 workflow for prepared RIF data: Zipf table, power-law fitting, RIF computation, plots, and Excel export.
rif_workflow_z1( rif_data, alpha_zipf = 1, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw"), output_dir = NULL, title_prefix = "Observed and theoretical Zipf distributions for ", x_title = "Rank", y_title = "Count", excel_file = NULL, zipf_excel_file = NULL, save_excel = FALSE, save_plots = FALSE, plot_formats = "png", plot_format = NULL, plot_dir = NULL, plot_width = 8, plot_height = 6, plot_dpi = 600, analysis_excel_file = NULL )rif_workflow_z1( rif_data, alpha_zipf = 1, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw"), output_dir = NULL, title_prefix = "Observed and theoretical Zipf distributions for ", x_title = "Rank", y_title = "Count", excel_file = NULL, zipf_excel_file = NULL, save_excel = FALSE, save_plots = FALSE, plot_formats = "png", plot_format = NULL, plot_dir = NULL, plot_width = 8, plot_height = 6, plot_dpi = 600, analysis_excel_file = NULL )
rif_data |
An object of class |
alpha_zipf |
Theoretical Zipf alpha value. |
no_of_sims |
Number of bootstrap simulations. |
threads |
Number of threads for |
seed |
Random seed. |
bootstrap_engine |
Bootstrap engine. |
output_dir |
Output directory. Required when saving files unless all relevant file or directory paths are supplied explicitly. |
title_prefix |
Plot title. |
x_title |
X-axis title. |
y_title |
Y-axis title. |
excel_file |
Output Excel filename. |
zipf_excel_file |
Output Excel filename for the Zipf table. |
save_excel |
Logical. Save RIF results to Excel? |
save_plots |
Logical. Save Zipf plots to disk? |
plot_formats |
Plot export format or formats. Options are |
plot_format |
Deprecated alias for |
plot_dir |
Output directory for plots. If |
plot_width |
Plot width used when saving plots. |
plot_height |
Plot height used when saving plots. |
plot_dpi |
Resolution used when saving PNG plots. |
analysis_excel_file |
Output Excel filename for the complete power-law analysis, including the individual bootstrap simulations. |
A list of class rif_workflow_z1.
Runs the complete Z2 workflow for two RIF inputs. Both inputs must be the
same kind: either prepared RIF data or previously computed RIF results. If
the inputs are rif_tbl objects, the workflow runs rif_workflow_z1() for
each group and then creates the comparative tables. If the inputs are
rif_results objects, the workflow skips model fitting, RIF computation,
and Zipf plots, and only creates the comparative tables and Excel export.
rif_workflow_z2( rif_data1, rif_data2, alpha_zipf = 1, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw"), output_dir = NULL, title_prefix = "Observed and theoretical Zipf distributions for ", x_title = "Rank", y_title = "Count", excel_file = NULL, save_excel = FALSE, save_plots = FALSE, plot_formats = "png", plot_format = NULL, plot_dir = NULL, plot_width = 8, plot_height = 6, plot_dpi = 600 )rif_workflow_z2( rif_data1, rif_data2, alpha_zipf = 1, no_of_sims = 1000, threads = 1, seed = 123, bootstrap_engine = c("manual", "poweRlaw"), output_dir = NULL, title_prefix = "Observed and theoretical Zipf distributions for ", x_title = "Rank", y_title = "Count", excel_file = NULL, save_excel = FALSE, save_plots = FALSE, plot_formats = "png", plot_format = NULL, plot_dir = NULL, plot_width = 8, plot_height = 6, plot_dpi = 600 )
rif_data1 |
First object of class |
rif_data2 |
Second object of class |
alpha_zipf |
Theoretical Zipf alpha value. |
no_of_sims |
Number of bootstrap simulations. |
threads |
Number of threads for |
seed |
Random seed. |
bootstrap_engine |
Bootstrap engine. |
output_dir |
Output directory. Required when saving files. |
title_prefix |
Plot title. |
x_title |
X-axis title. |
y_title |
Y-axis title. |
excel_file |
Output Excel filename. |
save_excel |
Logical. Save comparative RIF results to Excel? |
save_plots |
Logical. Save Zipf plots to disk? Only available when
both inputs are objects of class |
plot_formats |
Plot export format or formats. Options are |
plot_format |
Deprecated alias for |
plot_dir |
Output directory for plots. If |
plot_width |
Plot width used when saving plots. |
plot_height |
Plot height used when saving plots. |
plot_dpi |
Resolution used when saving PNG plots. |
A list of class rif_workflow_z2.
Creates matrix and network visualizations from individual or comparative RIF
results. The workflow accepts only rif_results and rif_compare_results
objects; use rif_workflow_z1() or rif_workflow_z2() first when starting
from prepared RIF tables.
rif_workflow_z3( x, output_dir = "Z3_results_RIF_visuals", scope = c("auto", "individual", "combined", "both"), plot_types = c("matrix", "network"), methods = NULL, types = NULL, groups = NULL, plot_formats = "png", matrix_width = 10, matrix_height = 7.5, network_width = 10, network_height = 7.5, combined_matrix_width = 16, combined_matrix_height = 7.2, combined_network_width = 16, combined_network_height = 7.6, units = "in", plot_dpi = 600, overwrite = TRUE, save_plots = FALSE, matrix_args = list(), network_args = list(), dpi = NULL, save = NULL )rif_workflow_z3( x, output_dir = "Z3_results_RIF_visuals", scope = c("auto", "individual", "combined", "both"), plot_types = c("matrix", "network"), methods = NULL, types = NULL, groups = NULL, plot_formats = "png", matrix_width = 10, matrix_height = 7.5, network_width = 10, network_height = 7.5, combined_matrix_width = 16, combined_matrix_height = 7.2, combined_network_width = 16, combined_network_height = 7.6, units = "in", plot_dpi = 600, overwrite = TRUE, save_plots = FALSE, matrix_args = list(), network_args = list(), dpi = NULL, save = NULL )
x |
An object of class |
output_dir |
Output directory. |
scope |
Plot scope. Uses the same logic as |
plot_types |
Plot types to export. Options are |
methods |
Optional methods to include. If |
types |
Optional types to include. If |
groups |
Optional groups to include for individual plots. If |
plot_formats |
Output format or formats. Options are |
matrix_width |
Matrix plot width. |
matrix_height |
Matrix plot height. |
network_width |
Network plot width. |
network_height |
Network plot height. |
combined_matrix_width |
Combined matrix panel width. |
combined_matrix_height |
Combined matrix panel height. |
combined_network_width |
Combined network panel width. |
combined_network_height |
Combined network panel height. |
units |
Units for plot width and height. |
plot_dpi |
Resolution used for PNG output. |
overwrite |
Logical. Should existing files be overwritten? |
save_plots |
Logical. Save plots to disk? |
matrix_args |
Named list of additional arguments passed to
|
network_args |
Named list of additional arguments passed to |
dpi |
Deprecated alias for |
save |
Deprecated alias for |
A list of class rif_workflow_z3.
Computes theoretical Zipf counts and related errors for prepared RIF data.
rif_zipf(data, alpha_zipf = 1)rif_zipf(data, alpha_zipf = 1)
data |
An object of class |
alpha_zipf |
Theoretical Zipf alpha value. Default is 1. |
An object of class rif_zipf_tbl.