Skip to contents

Core Functions

Create surreal datasets with hidden images in residuals

surreal()
Find X Matrix and Y Vector for Residual Surrealism
surreal_text()
Apply the surreal method to a text string
surreal_image()
Apply the surreal method to an image file
border_augmentation()
Transform Data by Adding a Border

Points

Get the points that draw a message or an image before hiding them

surreal_text_points()
Turn text into the points that draw it
surreal_image_points()
Turn an image into the points that draw it

Watch the method arrive at its data

surreal_trace()
Record the Search Behind a Surreal Dataset
plot(<surreal_trace>)
Plot a Recorded Search

Variable Selection

Hide the image among decoy predictors and select the real ones step by step

surreal_decoys()
Add Decoy Predictors to a Surreal Dataset
surreal_path()
Select Predictors One Step at a Time
plot(<surreal_path>)
Plot a Recorded Selection

Interactive App

Explore the surreal algorithm interactively

surreal_app()
Launch the Surreal Shiny App

Datasets

Built-in datasets for demos and examples

r_logo_image_data
R Logo Pixel Data
jackolantern_surreal_data
Jack-o'-Lantern Surreal Data