바구니 안을 살펴봅시다

R로 배우는 Market Basket Analysis

Christopher Bruffaerts

Statistician

항목 시각화

TID 거래
1 {Bread, Butter, Cheese, Wine}
2 {Bread, Butter, Wine}
3 {Bread, Butter}
4 {Butter, Cheese, Wine}
5 {Butter, Cheese}
6 {Cheese, Wine}
7 {Butter, Wine}

항목 빈도 플롯

빈도 기본 절대

R로 배우는 Market Basket Analysis

R에서 항목 시각화

절대값 유형

itemFrequencyPlot(data_trx, 
                  main='Absolute Item Frequency Plot',
                  type="absolute"
)

상대값 유형

itemFrequencyPlot(data_trx,
                  main='Relative Item Frequency Plot',
                  type="relative"
)

빈도 기본 절대

항목 빈도 기본

R로 배우는 Market Basket Analysis

상위 항목

topN으로 재정렬 및 필터링

itemFrequencyPlot(
  data_trx,
  topN = 4,
  main = 'Absolute Item Frequency Plot',
  type = "absolute"
)

항목 빈도 절대 상위

R로 배우는 Market Basket Analysis

추가 사용자 지정

플립 및 사용자 지정

itemFrequencyPlot(
  data_trx,
  topN = 4,
  main = 'Absolute Item Frequency Plot',
  type = "absolute",
  col = rainbow(4),
  ylab = "",
  cex.names = 1.2,
  horiz = TRUE
)

항목 빈도 플롯 상위 색상

R로 배우는 Market Basket Analysis

항목을 그려봅시다!

R로 배우는 Market Basket Analysis

Preparing Video For Download...