Publications by Nguyen Ngoc Tuyen
BoxPlot with ggplot2
#1/ Input data “Salary”, xem data bang table1 setwd("E:/CONG VIEC/Ky nang ngoai/Xu ly so lieu Bang R") datt=read.csv("Van Lang R and Machine Learning 2023/Thuc hanh ngay 1/Salaries.csv",header = T,na.strings = "NA") head(datt) ## ID Rank Discipline Yrs.since.phd Yrs.service Sex Salary ## 1 1 Prof B 19 ...
565 sym R (6007 sym/39 pcs) 12 img 1 tbl
Edit Data with Package tidyverse
Cac ham pho bien voi tidyverse Filter: Chon dong (observation) Select: Chon cot (variable) Arrange: Xep thu tu rbind: Noi cac dataset mutate: tao bien moi summarize: tom tat Nhap data: Salary datt=read.csv("E:/CONG VIEC/Ky nang ngoai/Xu ly so lieu Bang R/Van Lang R and Machine Learning 2023/Thuc hanh ngay 1/Salaries.csv",header = T) library(ggpl...
506 sym R (5830 sym/25 pcs) 1 tbl
Histogram with ggplot2
Tom tat cac buoc chinh trong ggplot 2 Buoc 1: Goi data va quy dinh cac truc x, y VD: ggplot(data=dat2,aes(x=gdpPercap,y=lifeExp)) Buoc 2: Chon kieu bieu do, chon kieu scatterplot Buoc 3: Ve them duong xu huong cua data Buoc 4: Hoan chuyen truc hoanh “gdpPercap” Buoc 5: Gan nhan cho tieu de, truc x, truc y Bước 6: Chinh Theme cho bieu do B...
937 sym R (3925 sym/25 pcs) 11 img
Cac buoc co ban trong ggplot2
Tom tat cac buoc chinh trong ggplot 2 - Buoc 1: Goi data va quy dinh cac truc x, y VD: ggplot(data=dat2,aes(x=gdpPercap,y=lifeExp)) - Buoc 2: Chon kieu bieu do, chon kieu scatterplot - Buoc 3: Ve them duong xu huong cua data - Buoc 4: Hoan chuyen truc hoanh “gdpPercap” - Buoc 5: Gan nhan cho tieu de, truc x, truc y - Bước 6: Chinh Th...
1208 sym R (3219 sym/30 pcs) 11 img
R: Input data_table1_compareGroups
Nhap data bang “File/import Dataset/ Excel” dat1=read.csv("E:/CONG VIEC/Ky nang ngoai/Xu ly so lieu Bang R/Van Lang R and Machine Learning 2023/Thuc hanh ngay 1/Salaries.csv",header=T,na.strings = "NA") Xem so hang cot (so predictors va observations), xem 6 dong dau tien, xem dac tinh cua bien va khai quat data dim(dat1) ## [1] 397 7 head(d...
1188 sym R (2701 sym/18 pcs) 3 tbl
Thực hành Buổi 2
Nhap du lieu sa=read.csv("E:/CONG VIEC/Ky nang ngoai/Xu ly so lieu Bang R/Dataset Van Lang R and Machine Learning 2023/Thuc hanh ngay 1/Salaries.csv") head(sa) ## ID Rank Discipline Yrs.since.phd Yrs.service Sex Salary ## 1 1 Prof B 19 18 Male 139750 ## 2 2 Prof B 20 1...
1106 sym R (11776 sym/42 pcs) 6 img
Bài 2 vẽ biểu đồ
Nhập data setwd("E:/CONG VIEC/Ky nang ngoai/Xu ly so lieu Bang R/Regression-Book-master_VanLang2023") t2=file.choose() sa=read.csv(t2,header=T) head(sa) ## ID Rank Discipline Yrs.since.phd Yrs.service Sex Salary ## 1 1 Prof B 19 18 Male 139750 ## 2 2 Prof B 20 16 ...
423 sym R (2016 sym/12 pcs) 5 img
Thực hành Buổi 1
Ngày 1: Thực hành vẽ biểu đồ # nhập data setwd("E:/CONG VIEC/Ky nang ngoai/Xu ly so lieu Bang R/Regression-Book-master_VanLang2023") t=file.choose() obe=read.csv(t,header=T) head(obe) ## id gender height weight bmi age bmc bmd fat lean pcfat ## 1 1 F 150 49 21.8 53 1312 0.88 17802 28600 37.3 ## 2 2 ...
100 sym R (1426 sym/7 pcs) 2 img
Ôn tập RMarkdown 29Sept
Load library require(explore) ## Loading required package: explore require(ggplot2) ## Loading required package: ggplot2 ## Warning: package 'ggplot2' was built under R version 3.5.3 require(GGally) ## Loading required package: GGally ## Warning: package 'GGally' was built under R version 3.5.3 ## ## Attaching package: 'GGally' ## The following...
1387 sym R (2231 sym/31 pcs) 6 img