Forum Discussion
fverhagen
10 years agoNew Member
R print or summary visualization
Does anyone know how you can show the result of an R script in a dashboard? And I don't mean the charts, but for example the result of the r script : input <- warpbreaksprint(head(input)) ou...
bice_cold
7 years agoFrequent Visitor
I haven't tested the solution on summary() outputs, but I have done this with a numeric output value. A way around this is to utilize ggplot() + geom_text() in order to output a text value. I used this in a predict function where:
p <- predict(fit, test.data)
ggplot() + geom_text(aes(0, 0, label = p))
That got me a plot that has my numeric value in the center. If you mess around with the arguments available for the function you can make it look a lot nicer than that. It's not great, but it works until Power BI starts allowing us to output printed values to a report.
If that works, please mark it as a solution. Thanks!