Hello Community,
I am having an issue with rendering an R tool graph using the Render tool, to be specific I'm getting no output (i.e. blank files). I was following the Alteryx blog post here.
The flow is R Tool -> Report Text -> Render Tool. There configurations were:
R Tool*:
library(AlteryxRviz)
library(pairsD3)
fig <- pairsD3(iris[,1:4], group = iris[,5])
renderInComposer(fig, nOutput=3)
Report Text:
(Chosen) Expert Mode: Treate text as Raw PCXML
(Checked) Validate PCXML
Render Tool:
Output Mode: Choose a Specific Output File
Output File: AbsoluteFilePath\report.html
I'm running Alteryx Designer version 2019.4 on Windows 10. Attached on some supplementary images.
*I also tried networkD3, rbokeh, plotly, and several other r packages.
Thanks
Solved! Go to Solution.
Hi @RobesMaGobes,
Thank for posting.
I have tested on my end and I can confirm the behaviour aka report is generated correctly when output is a PCXML. Given that Ranmath's example uses PCXML, I am not sure if any output format is supported. Bear in mind that Alteryx Designer has changed quite a bit since the publication of the article in 2016.
As a workaround, you could save the plot into a HTML file from the R tool itself, using the pairsD3.
Example:
library(AlteryxRviz)
library(pairsD3)
fig <- pairsD3(iris[,1:4], group = iris[,5])
savePairs(fig, "D:/temp/report_r.html",selfcontained=FALSE)
renderInComposer(fig, nOutput=3)
Details about savePairs() are available in package documentation: https://cran.r-project.org/web/packages/pairsD3/pairsD3.pdf
Hope that helps.
Thanks,
PaulN
I have tried "renderInComposer" output for pairsD3 and it works properly.
Nevertheless I need to plot an interactive scatterplot. I tried with ggplot2 + plotly and I have an error message as follow :
"An error occured while rendering : exception parse error line : 1917 column : 129932 expected entity name for reference"
Can anyone help me to get an interactive plot as output, please?
User | Count |
---|---|
19 | |
15 | |
15 | |
8 | |
6 |