My algorithm is pretty basic it reads a set of data from a CSV and does some analysis over the data.
It was easy with the box/mosaic/bar plots as they output on the pdf channel by default.
The issues is at inpect(rules)
where rules is a set of rules
resulted from applying the apriori
algorithm
I've tried with textplot(inspect(rules))
=> error:
Error in max(sapply(unlist(slist), strwidth, cex = cex)) :
invalid 'type' (list) of argument
and also with textplot(rules)
=> error:
Error in as.character.default(<S4 object of class "rules">) :
no method for coercing this S4 class to a vector
Is there a way to output these rules using a plot (this would be better) as it would be more readable.
Or, as final solution to output to pdf as basic text what the print(inspect(rules))
returns.