Yes, we can create box plots using “plotly” in R. You have to have installed the “plotly” package if it is not installed on your environment and then use the library(plotly) to use it in the session context. The Orange dataset is used as an example which captures the growth of orange trees information. The box plot is plotted for every tree based on variation in the circumference. Code: library(plotly) str(Orange) head(Orange)
plot_ly(Orange,y=~circumference,x=~Tree,color=~Tree,type="box")