Hello R

Default R plotting through nextjournal /results folder

png("/results/iris.png")
str(iris)

plot(x=iris$Sepal.Length, y=iris$Sepal.Width)

dev.off()

Or we can plot with plotly

library(plotly)
print(paste("Plotly version:", packageVersion("plotly")))

plot_ly(alpha = 0.6) %>%
  add_histogram(x = ~rnorm(500)) %>%
  add_histogram(x = ~rnorm(500) + 2) %>%
  layout(barmode = "overlay")
library(plotly)

plot_ly(midwest, x = ~percollege, color = ~state, type = "box")
© 2018 Nextjournal GmbH