-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Rhistory
159 lines (159 loc) · 7.71 KB
/
.Rhistory
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
devtools::install_github("r-lib/pkgdown")
setwd("~/Documents/spsurv")
usethis::use_pkgdown()
pkgdown::build_site()
devtools::load_all()
### ------------------------------------------------
# b_{0,4}(x) &= (1-x)^{4},\\
# b_{1,4}(x) &= 4 x(1-x)^{3}, & \quad
# b_{2,4}(x) &= 6 x^2(1-x)^{2}, \\
# b_{3,4}(x) &= 4 x^3(1-x) & \quad
# b_{4,4}(x) &= x^4.
par(bg=NA)
m <- 4; tau <- 1; k <- 0
curve(choose(m, k)*((x/tau)^k)*(1-(x/tau))^(m-k), xlim = c(0, tau), ylim = c(0,1), frame = F, lwd = 15, col = viridis(m+1)[1], ylab = "", xlab = "", cex.axis = 1.5)
axis(side = 2, at = c(0.2,0.6,1), cex.axis = 1.5)
### ------------------------------------------------
# b_{0,4}(x) &= (1-x)^{4},\\
# b_{1,4}(x) &= 4 x(1-x)^{3}, & \quad
# b_{2,4}(x) &= 6 x^2(1-x)^{2}, \\
# b_{3,4}(x) &= 4 x^3(1-x) & \quad
# b_{4,4}(x) &= x^4.
library("viridis")
par(bg=NA)
m <- 4; tau <- 1; k <- 0
curve(choose(m, k)*((x/tau)^k)*(1-(x/tau))^(m-k), xlim = c(0, tau), ylim = c(0,1), frame = F, lwd = 15, col = viridis(m+1)[1], ylab = "", xlab = "", cex.axis = 1.5)
axis(side = 2, at = c(0.2,0.6,1), cex.axis = 1.5)
for(k in 1:m){
curve(choose(m, k)*((x/tau)^k)*(1-(x/tau))^(m-k), add = T, col = viridis(m+1)[k+1], lwd = 15)
}
library("hexSticker")
sticker("inst/figures/bp.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png", p_family = "ASC")
sticker("inst/figures/bp.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/bp.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#DCDCDC", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#1E90FF", h_color="#FDE725FF",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#1E90FF", h_color="#ffff00",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#1E90FF", h_color="#ffd700",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#1E90FF", h_color="#ffd700",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#1E90FF", h_color="#d4af37",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#1E90FF", h_color="#c2e37b",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6, h_fill="#1E90FF", h_color="#cbfb63",
filename="inst/figures/imgfile.png")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#1E90FF", h_color="#9be203",
filename="inst/figures/imgfile.png")
font_add_google("Gochi Hand", "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#1E90FF", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
library(showtext)
font_add_google("Gochi Hand", "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#1E90FF", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#1E90FF", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#1E90FF", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
font_add_google("Russo One", "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#1E90FF", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#BAEDFF", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#0784BA", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#3EB9A5", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#3EB9A5", h_color="#E9A02F",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#01ACB6", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#01ACB6", h_color="#2B2B2D",
filename="inst/figures/imgfile.png", p_family = "f")
sticker("inst/figures/Rplot.png", package="spsurv", p_size=20, s_x=1, s_y=.75, s_width=.6,
h_fill="#01ACB6", h_color="#9be203",
filename="inst/figures/imgfile.png", p_family = "f")
devtools::release()
curve(1/x)
curve(1/x-2)
curve(1/(x-2))
curve(1/(x-2), ylim = c(0,10), xlim = c(0,10))
curve(1/(x-20), ylim = c(0,10), xlim = c(0,10))
curve(1/(x-20), ylim = c(0,10), xlim = c(0,20))
curve(1/(x-20), ylim = c(0,10), xlim = c(0,10))
curve(1/(x-20), ylim = c(0,10), xlim = c(0,100))
colMeans(iris[,-5])
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
pkgdown::build_site()
devtools::load_all()
spsurv::rsurv()