Spaces:
Sleeping
Sleeping
File size: 284 Bytes
0fc3d4a |
1 2 3 4 5 6 7 8 9 10 11 12 |
library(shiny)
shinyServer(function(input, output) {
output$grafico1 <- renderPlot({
prob <- dgeom(x=0:input$x, prob=input$p)
barplot(prob, ylim=c(0, 1), names.arg=0:input$x,
xlab="x", ylab=expression(P(X==x)), col="deepskyblue3", las=1)
grid()
})
})
|