spark_plot_pca: A PCA Plotting Tool for SparklyR ml_pca

Description Usage Arguments Details

Description

PCA Plot output with column names. Gives only the top two dimensions

Usage

1
spark_plot_pca(ml_pca_model)

Arguments

ml_pca_model

is the spark pca model outputs table you will pass to the function.

Details

You must have ggrepel installed

Example selection of a spark table and graph
pca = ml_pca(tbl(sc, sql("select * from db.stock_samples_20m limit 100")))
spark_plot_pca(pca))


GabeChurch/sparkedatools documentation built on June 25, 2019, 12:23 p.m.