-
Notifications
You must be signed in to change notification settings - Fork 0
/
orange_line_ex.R
34 lines (29 loc) · 823 Bytes
/
orange_line_ex.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#============================================================================#
#R Example - Single, Orange, Line---------------------------------------------
#============================================================================#
# Library Load-in-------------------------------------
library(ggplot2)
library(dplyr)
# Image Options---------------------------------------
#Set the color
orange_hex <- "#FFBB58"
#Set the width
chonk <- 10
# Data Creation----------------------------------------
line <-
tibble(x = 1:4,
y = 1,
color = orange_hex,
linewidth = chonk
)
# Plot Creation and View-------------------------------
line |>
ggplot(aes(x,y)) +
geom_path(
color = line$color,
linewidth = line$linewidth
) +
coord_equal(
ylim = c(0,3),
xlim = c(0,4)
)