-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
654 lines (428 loc) · 37.6 KB
/
index.html
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>NiceB don't want to ICU</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="富婆 饿饿 软饭 香香">
<meta property="og:type" content="website">
<meta property="og:title" content="富婆 饿饿 软饭 香香">
<meta property="og:url" content="https://niceb.icu/index.html">
<meta property="og:site_name" content="富婆 饿饿 软饭 香香">
<meta property="og:description" content="富婆 饿饿 软饭 香香">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="NiceB">
<meta name="twitter:card" content="summary">
<link rel="alternate" href="/atom.xml" title="富婆 饿饿 软饭 香香" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 5.4.0"></head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">富婆 饿饿 软饭 香香</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="搜索"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="https://niceb.icu"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-1999" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2024/10/19/1999/" class="article-date">
<time datetime="2024-10-19T06:35:26.000Z" itemprop="datePublished">2024-10-19</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2024/10/19/1999/">1999</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p><img src="https://s3.bmp.ovh/imgs/2024/10/19/dbdde013273bbad6.jpeg"></p>
</div>
<footer class="article-footer">
<a data-url="https://niceb.icu/2024/10/19/1999/" data-id="cm2fsdgws00003owc1el2ed9b" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/1999/" rel="tag">1999</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/GAME/" rel="tag">GAME</a></li></ul>
</footer>
</div>
</article>
<article id="post-猛猛抓鬼" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2024/10/07/%E7%8C%9B%E7%8C%9B%E6%8A%93%E9%AC%BC/" class="article-date">
<time datetime="2024-10-07T04:11:31.000Z" itemprop="datePublished">2024-10-07</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2024/10/07/%E7%8C%9B%E7%8C%9B%E6%8A%93%E9%AC%BC/">猛猛抓鬼</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<table>
<thead>
<tr>
<th align="left">神器·起</th>
<th align="right">星级</th>
<th align="center">打法</th>
</tr>
</thead>
<tbody><tr>
<td align="left">泪痕碗之念</td>
<td align="right">𖤐𖤐</td>
<td align="center"></td>
</tr>
<tr>
<td align="left">噬魂齿之争</td>
<td align="right">𖤐𖤐</td>
<td align="center"></td>
</tr>
<tr>
<td align="left">魔息角之怒</td>
<td align="right">𖤐</td>
<td align="center"></td>
</tr>
</tbody></table>
<table>
<thead>
<tr>
<th align="left">神器·转</th>
<th align="right">星级</th>
<th>打法</th>
</tr>
</thead>
<tbody><tr>
<td align="left">历劫月光草</td>
<td align="right">𖤐𖤐</td>
<td>每个人都要带九转</td>
</tr>
<tr>
<td align="left">情葬泪痕碗</td>
<td align="right">𖤐</td>
<td></td>
</tr>
</tbody></table>
<p><img src="https://s3.bmp.ovh/imgs/2024/10/07/12c203e6c8726f3a.png"></p>
</div>
<footer class="article-footer">
<a data-url="https://niceb.icu/2024/10/07/%E7%8C%9B%E7%8C%9B%E6%8A%93%E9%AC%BC/" data-id="cm26byj58000d28wcabcpfi3q" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/GAME/" rel="tag">GAME</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/MH/" rel="tag">MH</a></li></ul>
</footer>
</div>
</article>
<article id="post-YO-GI-OH-我必须加速链接" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2024/09/10/YO-GI-OH-%E6%88%91%E5%BF%85%E9%A1%BB%E5%8A%A0%E9%80%9F%E9%93%BE%E6%8E%A5/" class="article-date">
<time datetime="2024-09-10T11:20:38.000Z" itemprop="datePublished">2024-09-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2024/09/10/YO-GI-OH-%E6%88%91%E5%BF%85%E9%A1%BB%E5%8A%A0%E9%80%9F%E9%93%BE%E6%8E%A5/">YO-GI-OH 我必须加速链接</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p><img src="https://s3.bmp.ovh/imgs/2024/09/10/c161ca140925b1e1.jpg"></p>
<p><img src="https://s3.bmp.ovh/imgs/2024/09/10/8e6f04905e338579.jpg"></p>
<p><img src="https://s3.bmp.ovh/imgs/2024/09/10/f3bdab8e53de8f4e.jpg"></p>
<p><img src="https://s3.bmp.ovh/imgs/2024/09/10/ea03aff197609b28.jpg"></p>
<p><img src="https://s3.bmp.ovh/imgs/2024/09/10/857c1dea5e52a941.jpg"></p>
<p><img src="https://s3.bmp.ovh/imgs/2024/09/10/35a784e8ca6b0833.jpg"></p>
</div>
<footer class="article-footer">
<a data-url="https://niceb.icu/2024/09/10/YO-GI-OH-%E6%88%91%E5%BF%85%E9%A1%BB%E5%8A%A0%E9%80%9F%E9%93%BE%E6%8E%A5/" data-id="cm26byj4y000228wchxjn859q" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/GAME/" rel="tag">GAME</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/YO-GI-OH/" rel="tag">YO-GI-OH</a></li></ul>
</footer>
</div>
</article>
<article id="post-shyf在NiceB的放映室看过的电影" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2023/05/10/shyf%E5%9C%A8NiceB%E7%9A%84%E6%94%BE%E6%98%A0%E5%AE%A4%E7%9C%8B%E8%BF%87%E7%9A%84%E7%94%B5%E5%BD%B1/" class="article-date">
<time datetime="2023-05-10T08:21:35.000Z" itemprop="datePublished">2023-05-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2023/05/10/shyf%E5%9C%A8NiceB%E7%9A%84%E6%94%BE%E6%98%A0%E5%AE%A4%E7%9C%8B%E8%BF%87%E7%9A%84%E7%94%B5%E5%BD%B1/">shyf在NiceB的放映室看过的电影</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>史哥说按这个榜单往下看</p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/v/popular/rank/movie/">https://www.bilibili.com/v/popular/rank/movie/</a></p>
<table>
<thead>
<tr>
<th align="left">日期</th>
<th align="center">电影名</th>
<th align="left">源</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody><tr>
<td align="left">2023.06.04</td>
<td align="center">>>航海王:红发歌姬<<</td>
<td align="left"><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1XV4y1B7Ld/">BV1XV4y1B7Ld</a></td>
<td align="left">史哥认为这是一个音乐番</td>
</tr>
<tr>
<td align="left">2023.05.20</td>
<td align="center">>>速度与激情<<</td>
<td align="left"><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1dY411U7zD/">BV1dY411U7zD</a></td>
<td align="left">史哥今天才知道那个榜单是会变的..</td>
</tr>
<tr>
<td align="left">不记得了</td>
<td align="center">>>追凶者也<<</td>
<td align="left"></td>
<td align="left"></td>
</tr>
<tr>
<td align="left">不记得了</td>
<td align="center">>>扬名立万<<</td>
<td align="left"></td>
<td align="left"></td>
</tr>
<tr>
<td align="left">不记得了</td>
<td align="center">>>四海<<</td>
<td align="left"></td>
<td align="left">很离谱,大家都是以一种很难受的心情看完的,对了,当时猹猹也在</td>
</tr>
<tr>
<td align="left">不记得了</td>
<td align="center">>>疯狂的赛车<<</td>
<td align="left"></td>
<td align="left"></td>
</tr>
<tr>
<td align="left">不记得了</td>
<td align="center">>>无人区<<</td>
<td align="left"></td>
<td align="left"></td>
</tr>
<tr>
<td align="left">2023.05.10</td>
<td align="center">>>宇宙探索编辑部<<</td>
<td align="left"><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1bz4y1a7QZ/">BV1bz4y1a7QZ</a></td>
<td align="left">史哥说他不明白,还问我悟了吗,我说要不就后天再看一遍</td>
</tr>
<tr>
<td align="left">2023.05.16</td>
<td align="center">>>流浪地球2<<</td>
<td align="left"><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1A54y1F7v6/">BV1A54y1F7v6</a></td>
<td align="left">史哥说居然有这个,不过可惜的是现在还要钱,不能一起看 2023-05-12 16:32:19<br/>今天史哥用vr看了2023-05-16 21:06:17</td>
</tr>
<tr>
<td align="left">2023.05.12</td>
<td align="center">>>无名<<</td>
<td align="left"><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1Sc411W7tf/">BV1Sc411W7tf</a></td>
<td align="left">old说何主任出来 扒车那地方 多此一举吧</td>
</tr>
<tr>
<td align="left">2023.05.15</td>
<td align="center">>>无耻混蛋<<</td>
<td align="left"><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1Ec411J7ea/">BV1Ec411J7ea</a></td>
<td align="left">史哥说谁飞出来了</td>
</tr>
</tbody></table>
<p>更新日期 2023-05-20 18:28:15</p>
</div>
<footer class="article-footer">
<a data-url="https://niceb.icu/2023/05/10/shyf%E5%9C%A8NiceB%E7%9A%84%E6%94%BE%E6%98%A0%E5%AE%A4%E7%9C%8B%E8%BF%87%E7%9A%84%E7%94%B5%E5%BD%B1/" data-id="cm26byj55000a28wce8zf09cb" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-R语言S4对象" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2022/09/11/R%E8%AF%AD%E8%A8%80S4%E5%AF%B9%E8%B1%A1/" class="article-date">
<time datetime="2022-09-11T05:12:29.000Z" itemprop="datePublished">2022-09-11</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/09/11/R%E8%AF%AD%E8%A8%80S4%E5%AF%B9%E8%B1%A1/">R语言S4对象</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>创建类</p>
<figure class="highlight r"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">setClass(</span><br><span class="line"> <span class="comment"># 类名</span></span><br><span class="line"> <span class="string">"TumorPrognosis"</span>, </span><br><span class="line"> </span><br><span class="line"> <span class="comment"># 数据列表</span></span><br><span class="line"> slots = <span class="built_in">c</span>(</span><br><span class="line"> rawdata = <span class="string">"data.frame"</span>,</span><br><span class="line"> data = <span class="string">"data.frame"</span>,</span><br><span class="line"> markers = <span class="string">"character"</span>,</span><br><span class="line"> survival_year = <span class="string">"numeric"</span>,</span><br><span class="line"> group = <span class="string">"character"</span>,</span><br><span class="line"> cutoff = <span class="string">"list"</span>,</span><br><span class="line"> roc = <span class="string">"list"</span>,</span><br><span class="line"> ROCPlot = <span class="string">"list"</span>,</span><br><span class="line"> KMCurve = <span class="string">"list"</span></span><br><span class="line"> )</span><br><span class="line">)</span><br></pre></td></tr></table></figure>
<p>构造函数<br><code>initialize</code>是内置的构造函数,<br>这也是范式方法的增加方法,如果是范式方法,可以直接给S4类增加这个方法</p>
<figure class="highlight r"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line">setMethod(<span class="string">"initialize"</span>, signature(.Object = <span class="string">"TumorPrognosis"</span>),</span><br><span class="line"> <span class="keyword">function</span>(.Object, tumorName, markers, survival_year){</span><br><span class="line"> .Object@markers = markers</span><br><span class="line"> .Object@survival_year = survival_year</span><br><span class="line"> .Object@rawdata = read.xlsx(<span class="string">"01.data/prognosis1.xlsx"</span>, sheet = tumorName)</span><br><span class="line"> </span><br><span class="line"> colnames(.Object@rawdata) = <span class="built_in">c</span>(</span><br><span class="line"> <span class="string">"ID"</span>,</span><br><span class="line"> <span class="string">"inTime"</span>,</span><br><span class="line"> <span class="string">"outInfo"</span>,</span><br><span class="line"> <span class="string">"stage"</span>,</span><br><span class="line"> markers</span><br><span class="line"> )</span><br><span class="line"> </span><br><span class="line"> .Object = ScreenData(.Object)</span><br><span class="line"> .Object = GroupedSample(.Object)</span><br><span class="line"> .Object = CalcBestCutoff(.Object)</span><br><span class="line"> .Object = getKMCurve(.Object)</span><br><span class="line"> </span><br><span class="line"> .Object</span><br><span class="line">})</span><br></pre></td></tr></table></figure>
<p>如果不是范式,就需要先创建一个范式的,然后再添加到S4类上</p>
<figure class="highlight r"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br></pre></td><td class="code"><pre><span class="line">setGeneric(<span class="string">"getKMCurve"</span>, <span class="keyword">function</span>(.Object) <span class="built_in">standardGeneric</span>(<span class="string">"getKMCurve"</span>))</span><br><span class="line">setMethod(<span class="string">"getKMCurve"</span>, signature(.Object = <span class="string">"TumorPrognosis"</span>), <span class="keyword">function</span>(.Object){</span><br><span class="line"> </span><br><span class="line"> <span class="keyword">for</span> (data_set_name <span class="keyword">in</span> <span class="built_in">c</span>(<span class="string">"train"</span>, <span class="string">"valid"</span>)){</span><br><span class="line"> </span><br><span class="line"> </span><br><span class="line"> </span><br><span class="line"> </span><br><span class="line"> sur_data = getGroupSameples(.Object, data_set_name)</span><br><span class="line"> <span class="keyword">for</span> (marker <span class="keyword">in</span> <span class="built_in">c</span>(<span class="string">"stage"</span>, .Object@markers)){</span><br><span class="line"> <span class="keyword">if</span>(marker == <span class="string">"stage"</span>){</span><br><span class="line"> legend_labs = <span class="built_in">c</span>(<span class="string">"Stage I/II"</span>, <span class="string">"Stage III/IV"</span>)</span><br><span class="line"> }<span class="keyword">else</span>{</span><br><span class="line"> legend_labs = paste0(marker, <span class="built_in">c</span>(<span class="string">" high risk"</span>, <span class="string">" low rish"</span>))</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> group = paste0(marker, <span class="string">"_b"</span>)</span><br><span class="line"> surv = Surv(sur_data$futime, sur_data$fustat2)</span><br><span class="line"> formula_this = as.formula(paste0(<span class="string">"surv"</span>, <span class="string">"~"</span>, group))</span><br><span class="line"> </span><br><span class="line"> ggl = surv_fit(formula_this, data = sur_data)</span><br><span class="line"> surv_diff = survdiff(formula_this, data = sur_data)</span><br><span class="line"> p = ggsurvplot(ggl,</span><br><span class="line"> <span class="comment"># palette = c("blue", "red"),</span></span><br><span class="line"> xlab = <span class="string">"Time (Years)"</span>,</span><br><span class="line"> ylab = <span class="string">"OS (percentage)"</span>,</span><br><span class="line"> break.x.by = <span class="number">365</span>,</span><br><span class="line"> break.y.by = <span class="number">0.25</span>,</span><br><span class="line"> ylim = <span class="built_in">c</span>(<span class="number">0</span>, <span class="number">1</span>),</span><br><span class="line"> xlim = <span class="built_in">c</span>(<span class="number">0</span>, <span class="number">365</span> * .Object@survival_year),</span><br><span class="line"> legend.title = paste0(<span class="string">"Log-rank p = "</span>, format(<span class="number">1</span> - pchisq(surv_diff$chisq, <span class="built_in">length</span>(surv_diff$n) -<span class="number">1</span>), digits = <span class="number">3</span>)), <span class="comment"># 图例标题</span></span><br><span class="line"> legend.labs = legend_labs,</span><br><span class="line"> size = <span class="number">0.8</span>,</span><br><span class="line"> <span class="comment"># pval = T,</span></span><br><span class="line"> <span class="comment"># pval.size = 5,</span></span><br><span class="line"> <span class="comment"># pval.coord=c(365,0.05),</span></span><br><span class="line"> censor.shape=<span class="number">124</span>,</span><br><span class="line"> censor.size=<span class="number">2</span>,</span><br><span class="line"> font.main = <span class="built_in">c</span>(<span class="number">16</span>, <span class="string">"plain"</span>, <span class="string">"darkblue"</span>),</span><br><span class="line"> font.x = <span class="built_in">c</span>(<span class="number">10</span>, <span class="string">"plain"</span>, <span class="string">"black"</span>),</span><br><span class="line"> font.y = <span class="built_in">c</span>(<span class="number">10</span>, <span class="string">"plain"</span>, <span class="string">"black"</span>),</span><br><span class="line"> font.tickslab = <span class="built_in">c</span>(<span class="number">8</span>,<span class="string">"plain"</span>, <span class="string">"black"</span>),</span><br><span class="line"> font.legend = <span class="built_in">c</span>(<span class="number">8</span>,<span class="string">"plain"</span>,<span class="string">"black"</span>),</span><br><span class="line"> risk.table =<span class="built_in">F</span>,</span><br><span class="line"> tables.height = <span class="number">0.25</span>,</span><br><span class="line"> <span class="comment"># legend.labs=c("LPA","Non-LPA"),</span></span><br><span class="line"> legend = <span class="built_in">c</span>(<span class="number">0.3</span>,<span class="number">0.28</span>),</span><br><span class="line"> fontsize=<span class="number">4.5</span>,</span><br><span class="line"> conf.int=<span class="built_in">T</span>,</span><br><span class="line"> conf.int.style=<span class="string">'ribbon'</span>,</span><br><span class="line"> conf.int.alpha=<span class="number">0.1</span></span><br><span class="line"> <span class="comment"># surv.median.line="hv"</span></span><br><span class="line"> )</span><br><span class="line"> </span><br><span class="line"> p = p$plot +</span><br><span class="line"> scale_x_continuous(breaks = seq(<span class="number">0</span>, <span class="number">1825</span>, <span class="number">365</span>), labels = seq(<span class="number">0</span>, <span class="number">5</span>))</span><br><span class="line"> </span><br><span class="line"> .Object@KMCurve[[data_set_name]][[marker]] = p</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> .Object</span><br><span class="line"> </span><br><span class="line">})</span><br></pre></td></tr></table></figure>
<p>创建类实例</p>
<figure class="highlight r"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">T05_5 = new(<span class="string">"TumorPrognosis"</span>, <span class="string">"T05"</span>, <span class="built_in">c</span>(<span class="string">"CEA"</span>, <span class="string">"CA199"</span>, <span class="string">"AFP"</span>) , <span class="number">5</span>)</span><br></pre></td></tr></table></figure>
</div>
<footer class="article-footer">
<a data-url="https://niceb.icu/2022/09/11/R%E8%AF%AD%E8%A8%80S4%E5%AF%B9%E8%B1%A1/" data-id="cm26byj4v000128wc2anc1lfh" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/R%E8%AF%AD%E8%A8%80/" rel="tag">R语言</a></li></ul>
</footer>
</div>
</article>
<article id="post-图床" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2022/07/25/%E5%9B%BE%E5%BA%8A/" class="article-date">
<time datetime="2022-07-25T05:43:37.000Z" itemprop="datePublished">2022-07-25</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/07/25/%E5%9B%BE%E5%BA%8A/">图床</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>目前用的图床是<a target="_blank" rel="noopener" href="https://www.imgurl.org/">https://www.imgurl.org/</a>,随便找的,,真的非常随便的那种</p>
<p>用起来也不难吧,不用注册,直接拖拽就可以上传了,会直接给出MarkDown的链接,我再复制一下就行了。</p>
<p>听说有上传限制, 我也不知道</p>
<blockquote><p>ImgURL <a target="_blank" rel="noopener" href="https://imgurl.org/">https://imgurl.org/</a> 又是一个比较老牌的免费图床服务,稳定性不错,无需注册。游客限制每日上传10张,单张图片不能超过 5M,支持 HTTPS。诞生于2017年12月,是一款开源图片管理系统(简称图床),无需注册即可支持多图上传、粘贴上传、URL上传,图片压缩、图片鉴黄等多种功能,同时也支持自建。</p>
<footer><strong>初七</strong><cite><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/403554101?ivk_sa=1024320u">zhuanlan.zhihu.com/p/403554101?ivk_sa=1024320u</a></cite></footer></blockquote>
<blockquote><p>Every interaction is both precious and an opportunity to delight.</p>
<footer><strong>Seth Godin</strong><cite><a target="_blank" rel="noopener" href="http://sethgodin.typepad.com/seths_blog/2009/07/welcome-to-island-marketing.html">Welcome to Island Marketing</a></cite></footer></blockquote>
<img src="https://s3.bmp.ovh/imgs/2022/07/25/79395461781e262b.jpg" class="" width="300">
<img src = 'https://s3.bmp.ovh/imgs/2022/07/25/79395461781e262b.jpg' width="200"/>
<hr>
<p>现在的图片有个问题就是, 直接放出来是全尺寸的,看起来很大,, 不方便也不美观</p>
<p>于是<br>给图床做了个优化,</p>
<p>说是给图床加了个优化, 其实是加了个Tampermonkey脚本上去<br>想法是生成的外链上自带一个宽度限制</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$(<span class="built_in">document</span>).on(<span class="string">"click"</span>, <span class="string">".layui-btn"</span>, <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>{</span><br><span class="line"> $(<span class="string">"#bbcode"</span>)[<span class="number">0</span>].value = $(<span class="string">"#bbcode"</span>)[<span class="number">0</span>].value.replace(<span class="string">"[img]"</span>, <span class="string">"{% img "</span>).replace(<span class="string">"[/img]"</span>, <span class="string">" 300 %}"</span>);</span><br><span class="line">});</span><br><span class="line">$(<span class="built_in">document</span>).on(<span class="string">"focus"</span>, <span class="string">"#bbcode"</span>, <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>{</span><br><span class="line"> $(<span class="string">"#bbcode"</span>)[<span class="number">0</span>].value = $(<span class="string">"#bbcode"</span>)[<span class="number">0</span>].value.replace(<span class="string">"[img]"</span>, <span class="string">"{% img "</span>).replace(<span class="string">"[/img]"</span>, <span class="string">" 300 %}"</span>);</span><br><span class="line">});</span><br></pre></td></tr></table></figure>
<p>加了两个监听事件, 先加的是下面那个,要复制url的时候先点一下url, 就可以把url上加个宽度限制</p>
<p>后来觉得要多点一下有点麻烦,就想在点按钮的时候就把这件事情干了,可是这时候上传到限制了。。</p>
</div>
<footer class="article-footer">
<a data-url="https://niceb.icu/2022/07/25/%E5%9B%BE%E5%BA%8A/" data-id="cm26byj57000c28wcbhby4pnn" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%9B%BE%E5%BA%8A/" rel="tag">图床</a></li></ul>
</footer>
</div>
</article>
<article id="post-ggplot2中的底部标题" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2022/07/14/ggplot2%E4%B8%AD%E7%9A%84%E5%BA%95%E9%83%A8%E6%A0%87%E9%A2%98/" class="article-date">
<time datetime="2022-07-14T08:58:17.000Z" itemprop="datePublished">2022-07-14</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/07/14/ggplot2%E4%B8%AD%E7%9A%84%E5%BA%95%E9%83%A8%E6%A0%87%E9%A2%98/">ggplot2中的底部标题</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>ggplot2 中的底部的标题不是title, 而是cation</p>
<p>所以如果需要放在底部的标题的话,应该</p>
<figure class="highlight r"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">p + </span><br><span class="line"> labs(caption = <span class="string">"Caption"</span>) + <span class="comment"># title content</span></span><br><span class="line"> theme(plot.caption = element_text(hjust=<span class="number">0.5</span>)) <span class="comment"># align to center</span></span><br></pre></td></tr></table></figure>
</div>
<footer class="article-footer">
<a data-url="https://niceb.icu/2022/07/14/ggplot2%E4%B8%AD%E7%9A%84%E5%BA%95%E9%83%A8%E6%A0%87%E9%A2%98/" data-id="cm26byj50000428wc0ype31ma" class="article-share-link">Share</a>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ggplot2/" rel="tag">ggplot2</a></li></ul>
</footer>
</div>
</article>
<nav id="page-nav">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">下一页 &raquo;</a>
</nav>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">好康的</h3>
<div class="widget">
<ul>
<li>
<a href="/2022/07/27/hkd1/">??????</a>
</li>
<li>
<a href="/2022/07/27/hkd2/">??????</a>
</li>
<li>
<a href="/2022/07/27/hkd3/">??????</a>
</li>
</ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">标签</h3>
<div class="widget">
<ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/1999/" rel="tag">1999</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/GAME/" rel="tag">GAME</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/MH/" rel="tag">MH</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/R%E8%AF%AD%E8%A8%80/" rel="tag">R语言</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/YO-GI-OH/" rel="tag">YO-GI-OH</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ggplot2/" rel="tag">ggplot2</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%9B%BE%E5%BA%8A/" rel="tag">图床</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">标签云</h3>
<div class="widget tagcloud">
<a href="/tags/1999/" style="font-size: 10px;">1999</a> <a href="/tags/GAME/" style="font-size: 20px;">GAME</a> <a href="/tags/MH/" style="font-size: 10px;">MH</a> <a href="/tags/R%E8%AF%AD%E8%A8%80/" style="font-size: 10px;">R语言</a> <a href="/tags/YO-GI-OH/" style="font-size: 10px;">YO-GI-OH</a> <a href="/tags/ggplot2/" style="font-size: 10px;">ggplot2</a> <a href="/tags/%E5%9B%BE%E5%BA%8A/" style="font-size: 10px;">图床</a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">归档</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/10/">十月 2024</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/09/">九月 2024</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/05/">五月 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/09/">九月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/07/">七月 2022</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">最新文章</h3>
<div class="widget">
<ul>
<li>
<a href="/2024/10/19/1999/">1999</a>
</li>
<li>
<a href="/2024/10/07/%E7%8C%9B%E7%8C%9B%E6%8A%93%E9%AC%BC/">猛猛抓鬼</a>
</li>
<li>
<a href="/2024/09/10/YO-GI-OH-%E6%88%91%E5%BF%85%E9%A1%BB%E5%8A%A0%E9%80%9F%E9%93%BE%E6%8E%A5/">YO-GI-OH 我必须加速链接</a>
</li>
<li>
<a href="/2023/05/10/shyf%E5%9C%A8NiceB%E7%9A%84%E6%94%BE%E6%98%A0%E5%AE%A4%E7%9C%8B%E8%BF%87%E7%9A%84%E7%94%B5%E5%BD%B1/">shyf在NiceB的放映室看过的电影</a>
</li>
<li>
<a href="/2022/09/11/R%E8%AF%AD%E8%A8%80S4%E5%AF%B9%E8%B1%A1/">R语言S4对象</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2024 NiceB<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
</div>
</body>
</html>