master #14

Merged
tomekg merged 2 commits from tomekg/aitech-wizualizacja:master into master 2021-10-06 20:49:26 +02:00
5 changed files with 345 additions and 1896 deletions

1207
01.ipynb

File diff suppressed because one or more lines are too long

663
02.ipynb

File diff suppressed because one or more lines are too long

276
03.ipynb

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Mapy wykonane za pomocą pakietów *ggplot2* i *sf*"
"# Mapy wykonane za pomocą pakietów *ggplot2* i *sf*"
]
},
{
@ -88,7 +88,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Dane"
"## Dane"
]
},
{
@ -104,7 +104,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Prosta mapa"
"## Prosta mapa"
]
},
{
@ -137,7 +137,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Osie i tytuły"
"## Osie i tytuły"
]
},
{
@ -172,7 +172,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Kolory"
"## Kolory"
]
},
{
@ -232,7 +232,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Projekcja i zakres (projection and extent)"
"## Projekcja i zakres (projection and extent)"
]
},
{
@ -293,7 +293,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Skala oraz strzałka"
"## Skala oraz strzałka"
]
},
{
@ -339,7 +339,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Nazwy"
"## Nazwy"
]
},
{
@ -392,7 +392,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Ostateczna mapa Zatoki Meksykańskiej"
"## Ostateczna mapa Zatoki Meksykańskiej"
]
},
{
@ -461,7 +461,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Dodatkowe punkty na mapie"
"## Dodatkowe punkty na mapie"
]
},
{
@ -627,7 +627,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Granice stanów i nazwy"
"## Granice stanów i nazwy"
]
},
{
@ -11837,7 +11837,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Regiony (counties)"
"## Regiony (counties)"
]
},
{
@ -12803,7 +12803,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Miasta"
"## Miasta"
]
},
{
@ -13083,7 +13083,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Ostateczna mapa Florydy"
"## Ostateczna mapa Florydy"
]
},
{
@ -13135,7 +13135,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Klika map obok siebie"
"## Klika map obok siebie"
]
},
{
@ -13262,7 +13262,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Wstawki na mapach"
"## Wstawki na mapach"
]
},
{
@ -13370,7 +13370,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Mapy ze strzłkami do zbliżeń"
"## Mapy ze strzłkami do zbliżeń"
]
},
{
@ -13500,7 +13500,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Mapy Google"
"# Mapy Google"
]
},
{
@ -13551,7 +13551,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Zadania"
"# Zadania"
]
},
{

View File

@ -72,23 +72,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"[*shiny*](https://shiny.rstudio.com/) to pakiet R, który ułatwia tworzenie wysoce interaktywnych aplikacji internetowych bezpośrednio w R. Korzystając z *shiny*, analitycy danych mogą tworzyć interaktywne aplikacje internetowe, które umożliwiają zespołowi zanurzenie się i eksplorowanie danych w postaci pulpitów nawigacyjnych (dashboard) lub wizualizacji.\n",
"\n",
"<img src=\"figs/shinyLogo.png\" width=\"200\">"
"[*shiny*](https://shiny.rstudio.com/) to pakiet R, który ułatwia tworzenie wysoce interaktywnych aplikacji internetowych bezpośrednio w R. Korzystając z *shiny*, analitycy danych mogą tworzyć interaktywne aplikacje internetowe, które umożliwiają zespołowi zanurzenie się i eksplorowanie danych w postaci pulpitów nawigacyjnych (dashboard) lub wizualizacji."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<img src=\"figs/shiny2.png\" width=\"600\">"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Podstawowa budowa aplikacji *shiny*\n",
"## Podstawowa budowa aplikacji *shiny*\n",
"\n",
"library(shiny) # Load shiny library\n",
"\n",
@ -344,7 +335,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Layputy i szablony\n",
"## Layouty i szablony\n",
"\n",
"1. **Layout**. Layout functions allow inputs and outputs to be visually arranged in the UI. A well-chosen layout makes a *shiny* app aesthetically more appealing, and also improves the user experience.\n",
"\n",
@ -463,7 +454,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Reactive\n",
"## Reactive\n",
"The magic behind Shiny is driven by *reactivity*. There are three types of reactive components in a Shiny app. \n",
"1. Reactive source: User input that comes through a browser interface, typically.\n",
"2. Reactive conductor: Reactive component between a source and an endpoint, typically used to encapsulate slow computations.\n",
@ -529,7 +520,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Observers\n",
"## Observers\n",
"An *observer* is used for side effects, like displaying a plot, table, or text in the browser. By default an observer triggers an action, whenever one of its underlying dependencies change. As we are triggering an action using an observer, we do not need to use a *render***()* function or assign the results to an output."
]
},
@ -568,7 +559,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Observers vs. reactives\n",
"## Observers vs. reactives\n",
"\n",
"1. Role\n",
" - *reactive()* is for calculating values, without side effects.\n",
@ -583,12 +574,12 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Stop, delay, trigger\n",
"#### Stop\n",
"## Stop, delay, trigger\n",
"### Stop\n",
"The *isolate()* function allows an expression to read a reactive value without triggering re-execution when its value changes.\t\n",
"#### Delay\n",
"### Delay\n",
"The function *eventReactive()* is used to compute a reactive value that only updates in response to a specific event.\n",
"#### Trigger\n",
"### Trigger\n",
"There are times when you want to perform an action in response to an event. The *observeEvent()* function allows you to achieve this.\t"
]
},
@ -749,7 +740,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Zadania"
"# Zadania"
]
},
{