title: ArulesVIZ interactive plot - Shiny R
body: <p>I want to create a shiny web app for association mining. One of the thing I want to do is to implement an interactive plot from the package arulesVIZ.</p>
  
  <p>So I have the following code:</p>
  
  <pre><code>    library(shiny)
      library(DT)
      library(data.table)
      library(arules)
      library(arulesViz)
  
      df_transac &lt;-read.table("C:/Users/pauljacq/Desktop/splits/Association     files/ns_transactions.csv",header=T, sep=",")
      t&lt;-read.transactions("C:/Users/pauljacq/Desktop/splits/Associationfiles/ns_transactions.csv", format='single',cols=c('shipment_archive_id','ASIN'),sep=",")
  
      rules_t &lt;- apriori(t, 
                 parameter = list(support = 0.0001, confidence = 0.0001, minlen=2, maxlen=5, ext=TRUE ), 
                 control = list(verbose=TRUE))
  
      rules_table&lt;-data.table(lhs=labels(lhs(rules_t)), rhs=(labels(rhs(rules_t))), quality(rules_t))
  
      ui&lt;- basicPage(
        mainPanel(
          tabsetPanel(
            tabPanel("File", DT::dataTableOutput("df_transac")),
            tabPanel("Rules", DT::dataTableOutput("rules")),
            tabPanel("Graph", plotOutput("graph"))
          )
        )
      )
  
      server &lt;- function(input, output) {
        output$df_transac = DT::renderDataTable({
          df_transac
        })
        output$rules = DT:: renderDataTable({
          rules_table
        })
        output$graph = renderPlot({
          plot(rules_t,method="scatter",interactive=T)
        })
      }
      shinyApp(ui=ui,server=server)
  </code></pre>
  
  <p>The app works great when I have</p>
  
  <pre><code>    plot(rules_t,method='scatter",interactive=F)
  </code></pre>
  
  <p>However, when I have </p>
  
  <pre><code>    plot(rules_t,method='scatter",interactive=T)
  </code></pre>
  
  <p>I have the following error:</p>
  
  <pre><code>    Error in convertUnit: 'x' argument must be a unit object
  </code></pre>
  
  <p>Any solution, idea, or reference to previous work is very welcome :)</p>