Skip to content

Commit bc1aca6

Browse files
authored
Update learning-R.md
1 parent 5237023 commit bc1aca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

learning-R.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ blkM.bdR <- remlf90(
102102
plot(blkM.bdR, 'residuals')
103103
```
104104
通过上述的简短plot()代码即可绘图,但这不代表我们可以随意传递一份数据给plot()就能得到类似图形。
105-
<img src="../../../../../../img/Rplot.png" width="65%" style="display: block; margin: auto;" />
105+
<img src="img/Rplot.png" width="65%" style="display: block; margin: auto;" />
106106

107107
因此,应该了解模型运行结果blkM.bdR的属性,通过class()和mode()运行结果可知,blkM.bdR属性为breedR和remlf90,并且数据结构是列表list。
108108
```r
@@ -122,7 +122,7 @@ mode(blkM.bdR)
122122
...
123123
```
124124
如果想要查看plot.remlf90()的具体代码,只需输入`getAnywhere('plot.remlf90')`即可。
125-
<img src="../../../../../../img/fig1.png" width="65%" style="display: block; margin: auto;" />
125+
<img src="img/fig1.png" width="65%" style="display: block; margin: auto;" />
126126

127127
通过plot.remlf90()函数代码,可知与上述图形的相关代码部分如下:
128128
```r
@@ -140,7 +140,7 @@ function (x, type = c("phenotype", "fitted", "spatial", "fullspatial",
140140
```
141141

142142
如果想要知道如何使用plot.remlf90(),只需输入`?plot.remlf90`即可搜到其用法:
143-
<img src="../../../../../../img/fig2.png" width="65%" style="display: block; margin: auto;" />
143+
<img src="img/fig2.png" width="65%" style="display: block; margin: auto;" />
144144

145145
对于R初学者的忠告,**<span style="color:red">学R是一个过程,不要急功近利得学!</span>**慢慢参透数据结构和函数里数据属性与使用条件。只要领会了这点,并学会有技巧地检索问题,R的学习很快就会成为一种乐趣!
146146

0 commit comments

Comments
 (0)