Database Reference
In-Depth Information
Figure 5.5 Matrix-based visualization of LHS and RHS, colored by lift and
confidence
As the previous plot() command runs, the R console would simultaneously
display a distinct list of the LHS and RHS from the 127 rules. A segment of the
output is shown here:
Itemsets in Antecedent (LHS)
[1] "{citrus fruit,other vegetables,soda,fruit/vegetable
juice}"
[2] "{tropical fruit,other vegetables,whole
milk,yogurt,oil}"
[3] "{tropical fruit,butter,whipped/sour cream,fruit/
vegetable
juice}"
[4] "{tropical fruit,grapes,whole milk,yogurt}"
[5] "{ham,tropical fruit,pip fruit,whole milk}"
[124] "{liquor,red/blush wine}"
Itemsets in Consequent (RHS)
[1] "{whole milk}" "{yogurt}" "{root vegetables}"
[4] "{bottled beer}" "{other vegetables}"
The following code provides a visualization of the top five rules with the highest
lift. The plot is shown in Figure 5.6 . In the graph, the arrow always points from
an item on the LHS to an item on the RHS. For example, the arrows that connect
Search WWH ::




Custom Search