Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

R problem with unused arguments (nrows = # ) in subplot function

$
0
0

I am working on an R project, and I am trying to use plot_ly and subplot for my project, but

#Plot for samples
plot.x10 <- plot_ly(x = xbar.1x10, type = "histogram", name = "10")
plot.x20 <- plot_ly(x = xbar.1x20, type = "histogram", name = "50")
plot.x30 <- plot_ly(x = xbar.1x30, type = "histogram", name = "100")
plot.x40 <- plot_ly(x = xbar.1x40, type = "histogram", name = "200")

#Produce plot
subplot(plot.x10,plot.x20,plot.x30,plot.x40,nrows=2)%>%
  layout(title = "Cost Plus Rent Disbitrution")

But when I run this code, the error shows : unused argument (nrows = 2)

I do not know how to fix it, or what is the problem?

Any suggestions please?

Thank you so much


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>