Description Usage Arguments Details Value See Also Examples
color is contineoulsy scaled based on PC1 values and alpha values depend on point density.
1 2  | 
df | 
 datafram containing x,y pairs  | 
col_x | 
 character vector denoting x axis values  | 
col_y | 
 character vector denoting y axis values  | 
col_facet | 
 character vector denoting facetting column  | 
size | 
 size of points, Default: 4  | 
title | 
 character vector, Default: NULL  | 
x_title | 
 character vector, Default: col_x  | 
y_title | 
 character vector, Default: col_y  | 
... | 
 arguments passed to facet_wrap()  | 
Code adapted from https://drsimonj.svbtle.com/pretty-scatter-plots-with-ggplot2
plot
1 2 3 4 5 6 7  | df = ggplot2::diamonds %>%
  sample_n(2500)
col_x = 'carat'
col_y = 'price'
col_facet = 'cut'
f_plot_pretty_points(df, col_x, col_y, col_facet, title = 'price of diamonds by carat')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.