Geometric / server.R
FreddyHernandez's picture
Upload 2 files
0fc3d4a
raw
history blame contribute delete
284 Bytes
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()
})
})