不明大学生14日パンチはDay5ノート

#基本的な描画機能
?プロット
?PAR ##グローバル関数、
プロット(mtcars $重量、$ mtcars DISP)
プロット(mtcars $重量)
プロット(mtcars)
プロット(= 'p型'タイプのmtcars $重量、$ mtcars DISP)
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'L')
昇順で行わ##重量mtcarsの順序(mtcars $重量)、mtcarsで重量行を返し、ソート後の座標
<mtcarsを- mtcars [順序(mtcarsの$重量)は、]
の昇順に表示mtcaた重量mtcars ##
】可視プロット(mtcars $重量、mtcars $ DISP、TYPE = 'L')は、図中の折り線を有します。法則
プロット(mtcars $重量、mtcars $ DISP、タイプ= 'B')
のプロット(mtcars $重量、mtcars $ DISP、TYPE = 'O')
プロット(mtcars $重量、mtcars $ DISP、タイプ= 'H' )
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'S')
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'S')、
PAR(mfrow = C(3,3))注記#で表示されています上の図
のプロット(mtcars $重量、mtcars $ DISP、TYPE = 'L')
プロット(mtcars $重量、mtcars $ DISP、TYPE = 'B')
のプロット(mtcars $重量、mtcars $ DISP、TYPE = 'O')
プロット(mtcars $重量、mtcars $ DISP、TYPE = 'H')
のプロット( mtcars $重量、mtcars $ DISP、タイプ= 'S')


プロット(mtcars $重量、mtcars $ DISP、TYPE = 'S')は## 動作を継続し、それは後に図の中に充填する
プロット(mtcars $重量、mtcars $ DISP、タイプ= 'B')

##右下のボックスをクリックして「ほうき」単一ページに3つのボックスの3行を復元することができます

#pchパラメータ:0、ブロック2、三角
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'B'、PCH = 0)
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'B'、PCH = 2)

#cex、ドットサイズ制御
プロット(mtcars $重量、mtcars $ DISP、TYPE = 'B'、PCH = 2、CEX = 0.5)

#lty、線グラフの線種指定描画
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'L'、= LTY。1)
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'L'を、LTY = 2)

## LWD、ラインコントロールのサイズ
プロット(mtcars $重量、mtcars $ DISP、TYPE = 'L'、LTY = 2、LWD = 2)

#col、色制御
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'L'、LTY = 2、LWD = 2、COL = 'ブルー')
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'L' 、LTY = 2、LWD = 2 、COL = 4)# のみ1-8
プロット(mtcars重量$、$ mtcars DISP、TYPE = 'L'、LTY = 2、LWD = 2、COL = '#1 0000FF') ##六角
プロット(mtcars $重量、mtcars $緑色DISP、TYPE = 'L'、LTY = 2、LWD = 2、COL = RGB(赤= 0、= 0、青= 1))

XLIM YLimプロパティ##
プロット(mtcars $重量、mtcars $ DISP、TYPE = 'L'、LTY = 2、LWD = 2、COL = '青'、XLIM = C(3,4)、YLimプロパティ= Cの(200,300))

#main、表題の
プロット(mtcars $重量、mtcars $ DISP、TYPE = 'L'、LTY = 2、LWD = 2、COL = '青'、メイン= '質量及び線グラフDISP')
プロット(重量$ mtcars 、mtcars $ DISP、TYPE = ' L'、LTY = 2、LWD = 2、COL = '青'、メイン= '重量及びDISP線グラフ'、副= '2019年9月21日')

#1 xlab、標識されたx軸およびy軸にylab
プロット(mtcars $重量、mtcars $ DISP、TYPE = 'L'、LTY = 2、LWD = 2、COL = '青'、メイン=「重量及びDISP図ポリライン'副=' 2019年9月21日' xlab =' 質量'ylab ='ディス)

 

#5仕事----------------------------------------------- ----------------------
#。1、
プロット(MPG mtcars $、$ mtcars QseC、PCH =。8)

2#、
ライブラリ(readxl)
証券<-read_excel( 'E:/デスクトップのショートカットファイル保存/ A207 / 2019夏休み/タスク不明/不明の大学のジョブ/stock.xlsxの2 /研究所')
ビュー(株)

3#、
プロット(株式の$ DATE、証券の$ investor_confidence_index、タイプ= 'L'の、メイン= '投資家信頼感指数のタイミング図')

 

おすすめ

転載: www.cnblogs.com/chayibaishanlqy/p/11574859.html