Skip to contents

Data

The example data sets.

s_curve_noise
S-curve dataset with noise dimensions
s_curve_noise_training
S-curve dataset with noise dimensions for training
s_curve_noise_test
S-curve dataset with noise dimensions for test
s_curve_noise_umap
UMAP embedding for S-curve dataset which with noise dimensions
s_curve_noise_umap_scaled
Scaled UMAP embedding for S-curve dataset which with noise dimensions
s_curve_noise_umap_predict
Predicted UMAP embedding for S-curve dataset which with noise dimensions

Data preprocessing

These are for data preprocessing.

gen_scaled_data()
Scaling the NLDR data

Hexagonal binning

These are for hexagonal binning.

calc_bins_y()
Calculate the effective number of bins along x-axis and y-axis
gen_centroids()
Generate centroid coordinate
gen_hex_coord()
Generate hexagonal polygon coordinates
assign_data()
Assign data to hexagons
compute_std_counts()
Compute standardize counts in hexagons
hex_binning()
Hexagonal binning

2D model construction

These are to construct the 2D model.

cal_2d_dist()
Calculate 2D Euclidean distances between vertices
extract_hexbin_centroids()
Extract hexagonal bin centroids coordinates and the corresponding standardise counts.
extract_hexbin_mean()
Extract hexagonal bin mean coordinates and the corresponding standardize counts.
tri_bin_centroids()
Triangulate bin centroids
gen_edges()
Generate edge information

Parameters

These are to compute default parameter values.

compute_mean_density_hex()
Compute mean density of hexagonal bins
find_low_dens_hex()
Find low-density Hexagons
find_lg_benchmark()
Compute a benchmark value to remove long edges

Lift to high dimensions

The function is to lift the constructed 2D model into high-dimensions.

avg_highd_data()
Create a dataframe with averaged high-dimensional data

Fit the model

The function is to fit the model.

fit_highd_model()
Construct the 2D model and lift into high-D

Model summaries

These are to obtain model summaries.

glance()
Generate evaluation metrics
predict_emb()
Predict 2D embeddings
augment()
Augment Data with Predictions and Error Metrics

Visualisation

These are to visualise the model in 2D and high-dimensions.

GeomHexgrid
GeomHexgrid: A Custom ggplot2 Geom for Hexagonal Grid
stat_hexgrid()
stat_hexgrid Custom Stat for hexagonal grid plot
geom_hexgrid()
Create a hexgrid plot
GeomTrimesh
GeomTrimesh: A Custom ggplot2 Geom for Triangular Meshes
stat_trimesh()
stat_trimesh Custom Stat for trimesh plot
geom_trimesh()
Create a trimesh plot
vis_lg_mesh()
Visualize triangular mesh with coloured long edges
vis_rmlg_mesh()
Visualize triangular mesh after removing the long edges
show_langevitour()
Visualize the model overlaid on high-dimensional data

Additional

These are additional functionalities.

find_pts()
Find points in hexagonal bins
find_non_empty_bins()
Find the number of bins required to achieve required number of non-empty bins.
get_min_indices()
Get indices of all minimum distances