Skip to content

Instantly share code, notes, and snippets.

@selva86
Created February 13, 2020 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selva86/b0f4445142688476e620a4b528a96cd9 to your computer and use it in GitHub Desktop.
Save selva86/b0f4445142688476e620a4b528a96cd9 to your computer and use it in GitHub Desktop.
# Make a scatterplot with following variables and which looks like this.
# Top half: Points above 150 on Y axis is 'green3' else 'red'.
# Input
set.seed(42)
x <- runif(100, min = 10, max=20)
y <- runif(100, min = 100, max= 200)
# Settings
# point_color = ??
point_size = 1.5
title_font_size = 1.8
title = 'Scatter Plot'
X_axis_title = 'X axis'
Y_axis_title = 'Y axis'
X_axis_limit = c(9, 21)
Y_axis_limit = c(90, 210)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment