-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathui.R
80 lines (62 loc) · 2.07 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
library(shiny)
shinyUI(
fluidPage(
tags$head(
includeCSS("www/styles.css")
),
fluidRow(
column(
width = 9,
plotOutput("mandelbrot", height = "700px", width = "100%",
brush = brushOpts(id = "zoom_brush", resetOnNew = TRUE, delay = 600))
),
column(width = 3,
titlePanel("Shinybrot"),
wellPanel(
p("A Mandelbrot set explorer written in R + shiny. ",
"Under the hood it's using the ",
tags$a(href="https://github.com/blmoore/mandelbrot", "mandelbrot"),
" R package and ggplot2.")
,p(
"Set membership is calculated super-fast thanks to a C function originally from the ",
tags$a(href="https://github.com/mariodosreis/fractal", "fractal"),
"package."
),
tags$hr(),
tags$label(
class="control-label",
"Link:"),
uiOutput("qurl"),
tags$br(),
radioButtons("palette",
"Colours:",
choices = c("Vaccine", "Spectral", "Greyscale", "Heat", "Ice", "Lava"),
width = "100%",
inline = TRUE),
sliderInput("res",
"Resolution:",
min = 100,
max = 2000,
value = 500,
step = 100),
sliderInput("iter",
"Iterations:",
min = 100,
max = 1000,
value = 300,
step = 50),
tags$hr(),
actionButton("reset", "Reset", class="pull-right"),
p(icon("github", class = NULL, lib = "font-awesome"),
tags$a(href="https://github.com/blmoore/shinybrot",
"blmoore/shinybrot"),
tags$br(),
icon("twitter", class = NULL, lib = "font-awesome"),
tags$a(href="https://twitter.com/benjaminlmoore",
"@benjaminlmoore")
)
)
)
) # end fluidRow
)
)