Plot aturan alternatif

Analisis Keranjang Belanja di R

Christopher Bruffaerts

Statistician

Visualisasi matriks berbasis grup

Ekstraksi aturan dengan apriori

rules = apriori(data_trx, 
                parameter = list(
                  supp = 1/7,
                  conf = 0.6,
                  minlen = 2)
)

Metode grouped

plot(rules, method = "grouped")

grouped

Analisis Keranjang Belanja di R

Visualisasi matriks berbasis grup

Matriks berkelompok dengan metrik berbeda

plot(rules, 
     method = "grouped",
     measure = "lift",
     shading = "confidence")

grouped2

Analisis Keranjang Belanja di R

Plot koordinat paralel

Membuat aturan dan memanggil plot

plot(rules, method = "paracoord")
     lhs              rhs         support  confidence lift  count
[1]  {Bread}          => {Wine}   0.28     0.66       0.93  2    
[2]  {Bread}          => {Butter} 0.42     1          1.16  3    
[3]  {Cheese}         => {Wine}   0.42     0.75       1.05  3    
[4]  {Wine}           => {Cheese} 0.42     0.6        1.05  3    
[5]  {Cheese}         => {Butter} 0.42     0.75       0.87  3    
[6]  {Wine}           => {Butter} 0.57     0.8        0.93  4    
[7]  {Butter}         => {Wine}   0.57     0.66       0.93  4    
[8]  {Bread,Cheese}   => {Wine}   0.14     1          1.4   1    
[9]  {Bread,Cheese}   => {Butter} 0.14     1          1.16  1    
[10] {Bread,Wine}     => {Butter} 0.28     1          1.16  2    
...

Plot koordinat paralel

parallel_coordinates

Analisis Keranjang Belanja di R

ruleExplorer: pisau Swiss serbaguna

Aplikasi Shiny

ruleExplorer(rules)

Plot yang tersedia:

  • Tabel data
  • Scatter
  • Matriks
  • Kelompok
  • Grafik

shiny_rule_explorer

Analisis Keranjang Belanja di R

Lebih lanjut tentang Shiny

Analisis Keranjang Belanja di R

Mari eksplor dengan ruleExplorer!

Analisis Keranjang Belanja di R

Preparing Video For Download...