Fix for PDFs

This commit is contained in:
Halmaris 2021-10-06 20:40:44 +02:00
parent 6e798cf80b
commit 2609159cfd
5 changed files with 339 additions and 1894 deletions

1201
01.ipynb

File diff suppressed because one or more lines are too long

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

View File

@ -72,23 +72,14 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "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", "[*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",
"<img src=\"figs/shinyLogo.png\" width=\"200\">"
] ]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"<img src=\"figs/shiny2.png\" width=\"600\">" "## Podstawowa budowa aplikacji *shiny*\n",
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Podstawowa budowa aplikacji *shiny*\n",
"\n", "\n",
"library(shiny) # Load shiny library\n", "library(shiny) # Load shiny library\n",
"\n", "\n",
@ -344,7 +335,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"### Layputy i szablony\n", "## Layouty i szablony\n",
"\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", "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", "\n",
@ -463,7 +454,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "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", "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", "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", "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", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "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." "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", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"### Observers vs. reactives\n", "## Observers vs. reactives\n",
"\n", "\n",
"1. Role\n", "1. Role\n",
" - *reactive()* is for calculating values, without side effects.\n", " - *reactive()* is for calculating values, without side effects.\n",
@ -583,12 +574,12 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"### Stop, delay, trigger\n", "## Stop, delay, trigger\n",
"#### Stop\n", "### Stop\n",
"The *isolate()* function allows an expression to read a reactive value without triggering re-execution when its value changes.\t\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", "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" "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", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Zadania" "# Zadania"
] ]
}, },
{ {