Skip to content

Commit

Permalink
Logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dfranzani committed Nov 30, 2024
1 parent 3f9e3be commit 88990df
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 836 deletions.
Binary file added App/Logo/Ayun.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 32 additions & 4 deletions App/server.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
library(Cairo)
options(shiny.usecairo = T)
library(kableExtra)
Expand Down Expand Up @@ -28,6 +29,31 @@ function(input, output, session) {

### END CUSTOM URL FOR MENUITEM IN SIDEBARMENU

output$user <- renderUser({
dashboardUser(
name = "Daniel Franzani",
image = "https://adminlte.io/themes/AdminLTE/dist/img/user2-160x160.jpg",
title = "Ciencia de Datos",
subtitle = "",
fluidRow(
dashboardUserItem(
width = 6,
socialButton(
href = "https://github.com",
icon = icon("github-square")
)
),
dashboardUserItem(
width = 6,
socialButton(
href = "https://dropbox.com",
icon = icon("blog")
)
)
)
)
})


### Distribuciones muestrales

Expand Down Expand Up @@ -62,7 +88,7 @@ function(input, output, session) {
}

densidad_masa = function(x, valores, tipo, graph = "p"){
plot(x, valores, main = paste("Función de ", tipo, " probabilidad"),
plot(x, valores, main = paste("Función de ", tipo, " probabilidad"), bty = "n",
xlab = "Valores de X", ylab = "", las = 1, type = graph, pch = 16)
}

Expand All @@ -73,13 +99,15 @@ function(input, output, session) {
"valores" = unlist(valores[1:cantidad]),
"dominio" = rep(1:cantidad, rep(largo, cantidad))
)
plot(
datos$dominio, datos$valores,
boxplot(
datos$valores ~ datos$dominio, frame = F,
main = paste("Primeras ", cantidad, " simulaciones"),
xlab = "Simulación", ylab = "Valores de X simulados", xaxt = "n",
xlab = "Simulación", ylab = "Valores simulados", xaxt = "n", yaxt = "n",
las = 1, pch = 16, ylim = c(min(datos$valores), max(datos$valores)*1.4)
)
axis(side = 1, at = 1:cantidad, labels = paste0("S", 1:cantidad))
axis(side = 2, at = seq(from = min(datos$valores), to = max(datos$valores), length.out = 5),
labels = round(seq(from = min(datos$valores), to = max(datos$valores), length.out = 5)), las = 1)
legend(
"top",
legend = paste0(rep("S", cantidad), 1:cantidad, rep(": ", cantidad),
Expand Down
17 changes: 15 additions & 2 deletions App/ui.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
library(Cairo)
options(shiny.usecairo = T)
library(kableExtra)

# Encabezado general

encabezado = dashboardHeader(title = "Estadística")
# encabezado = dashboardHeader(title = "Estadística",
# # tags$li(class = "dropdown",
# # tags$a(href = "https://www.linkedin.com/in/dfranzani/",
# # icon("linkedin"), "", target = "_blank")),
# tags$li(class = "dropdown",
# tags$a(href = "https://github.com/Dfranzani",
# icon("github"), "", target = "_blank")),
# tags$li(class = "dropdown",
# tags$a(href = "https://dfranzani.netlify.app/",
# icon("blog"), "", target = "_blank")))

encabezado = dashboardHeader(title = "Estadística", userOutput("user"))

# Panel lateral general: filtro de temas

Expand Down Expand Up @@ -165,6 +178,6 @@ cuerpo = dashboardBody(
)

# Despliegue general
ui = dashboardPage(header = encabezado, sidebar = panelLateral, body = cuerpo, skin = "black")
ui = dashboardPage(header = encabezado, sidebar = panelLateral, body = cuerpo, skin = "black", title = "Hola")


2 changes: 1 addition & 1 deletion docs/app.json

Large diffs are not rendered by default.

Loading

0 comments on commit 88990df

Please sign in to comment.