Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen...

27
Universiteit Antwerpen Grafieken 3.1 Informatica Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Transcript of Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen...

Page 1: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.1Informatica

Informatica1rste BAC Biologie

Hoofdstuk 3Grafieken

Page 2: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.2Informatica

Inhoud• Basisvaardigheden

– Creëer Zip-file• Grafieken (Essentieel)

– Histogram– Box-plot– Scatterplot & Trend line

• Grafieken (Voor gevorderden)– Logaritmische schaal– Functies tekenen

Page 3: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.3Informatica

• Waarom ?– Groepeer verschillende bestanden in één– Comprimeer bestanden– Verstuur per e-mail

• kleiner, dus minder bandbreedte– Zo moet je je examen afgeven

• Hoe ? (1rste manier)– In Windows: rechter-klik– >>Send to >>Compressed

(zipped) Folder– Hernoem

• <studentennummer>+ ."zip"

Maak zip-bestand (1/2)

Page 4: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.4Informatica

Maak zip-bestand (2/2)• Hoe ? (2de manier)

– In windows ...– Selecteer de bestanden– Rechts-klik met muis

• Add to Archive ...– (1) Selecteer "Archive

Format"• ZIP (niet RAR)

– (2) Vul in: "Archive Name"• <studentennummer> +

."zip"– (3) OK

1

2

3

Page 5: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.5Informatica

HistogramAantal observaties per soort

0

10

20

30

40

50

60

70

baardvleermuis franjestaart grootoorvleermuis watervleermuis

aantal

Page 6: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.6Informatica

Maak Histogram (1/3)• Importeer "vleermuisAantal.csv"

– van de web-site• Selecteer kolommen met data

– incl. kolomtitels• Start "Create Chart Wizard"

– >>Insert>>Chart>>

• Selecteer gewenste type• >> Press and Hold ...

Page 7: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.7Informatica

Maak Histogram (2/3)• Manipuleer data • Manipuleer 1 rij data

Page 8: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.8Informatica

Maak Histogram (3/4)• Fijnregeling uitzicht grafiek

– selecteer verschillendetab bladen

• Definieer uitvoer– Bij voorkeur "As new sheet:"

Page 9: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.9Informatica

Histogram (meerdere datareeksen)1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004

baardvle 1 1 1 2 1 1 2 3 3 2 3 4 3franjesta 0 0 0 0 0 0 0 1 2 2 2 4 2watervle 0 0 0 0 0 1 3 5 8 9 10 12 11grootoo 2 2 1 0 2 2 1 2 3 2 3 4 3

0

2

4

6

8

10

12

14

1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004

Jaar

Aantal

baardvleermuis

franjestaart

grootoorvleermuis

watervleermuis

Page 10: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.10Informatica

Maak Histogram (meerdere datareeksen)• Importeer

"TellingenSoortPerJaar.csv"– van de web-site

• Selecteer {A2:N5}• Chart type: Column

Chart subtype: ClusteredColumn

• Stap 2 >> Series– zie je 4 vleermuissoorten ?– Category (X) Axis Labels

=TellingenSoortPerJaar!$B$1:$N$1

• Stap3: Opties >> Titles– Category (X) Axis: "Jaar"– Value (Y) Axis: "Aantal"

• Stap4: As new sheet in– naam naar keuze

• Dubbelklik grijze achtergrond– Format Plat Area

Area >> Fill Patterns >> None

Page 11: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.11Informatica

Voorbereiden Box-plot

A B C D E F...

10 karakteristieken q1 min med max q311 baardvleermuis 1 1 2 4 312 franjestaart 0 0 0 4 213 grootoorvleermuis 2 0 2 4 314 watervleermuis 0 0 3 12 19

=QUARTILE($B2:$N2;3)

=MIN($B2:$N2)

=QUARTILE($B2:$N2;1)

=MEDIAN($B5:$N5) =MAX($B5:$N5)

respecteer volgordeq1, min, med, max, q3

Page 12: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.12Informatica

Box-plot (1/2)• selecteer karakteristieken

– incl. kolomtitels– normaal {A10:F14}

• Start "Create Chart" Wizard• Step 1: Chart Type

– Line Chart / Line with Markers• Step 2: Data Range

– Series in Columns• Step 2: Series

– Verifieer 5 series(q1, min, med, max, q3)

• Step 3 ... Step 5– naar keuze

• Dubbelklik 1 lijn>> Format Data Series– Options >>

Drop lines: offHigh-Low Lines: onUp-Down bars: on

• Voor elke lijn; dubbelklik>> Format Data Series– Patterns >>

Line: none– Marker>>

Custom (keuze) black no colorsize: (keuze) pts

Page 13: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.13Informatica

Box-plot (2/2)

0

2

4

6

8

10

12

14

baardvleermuis franjestaart grootoorvleermuis watervleermuis

Soort

Aa

nta

l p

er

jaa

r q1

min

med

max

q3

Page 14: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.14Informatica

Scatter Plotspanwijdte/gewicht

0

2

4

6

8

10

12

14

16

0 5 10 15 20 25 30

spanwijdte

gewicht

baardvleermuis

franjestaart

grootoorvleermuis

watervleermuis

Page 15: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.15Informatica

Maak Scatter Plot (1/2)• Importeer "Observaties1.txt"

– van web-site• Sorteer alle kolommen

– eerst op soort, dan op datum• Selecteer spanwijdte + gewicht

voor all baardvleermuizen– {C2:D28}

• Insert Chart• Step 1

– Type: X/Y ScatterSubtype: Scatter

• Step 2– (3) Name: Baardvleermuis

• Per andere soort– (1) Series >>Add– (2) Selecteer X, Y waardes– (3) Name: ...vul in

3

1

2

Page 16: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.16Informatica

Maak Scatter Plot (2/2)• Step 3: Chart Options

– chart-title: spanwijdte/gewicht– Value (X) axis: spanwijdte– Value (Y) axis: gewicht

• Step 4: Chart Location– As new sheet in ...

• Maak alles zwart/wit– dubbelklik achtergrond

Area >> none (no color)– dubbelklik elke data-serie– kleur van marker: zwart

(foreground, soms background)spanwijdte/gewicht

0

2

4

6

8

10

12

14

16

0 5 10 15 20 25 30

spanwijdte

gewicht

baardvleermuis

franjestaart

grootoorvleermuis

watervleermuis

Page 17: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.17Informatica

Maak trend line• Rechtsklik op data-punt

– >> Add trendline ...– Linear

• Rechtsklik op trend line– Format trendline ...– Style: ... (kies zelf)

Weight: zo dun mogelijk

Page 18: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.18Informatica

Trend Lines

0

2

4

6

8

10

12

14

16

18

0 5 10 15 20 25 30

baardvleermuis

franjestaart

grootoorvleermuis

watervleermuis

Linear (watervleermuis)

Linear (baardvleermuis)

Linear (franjestaart)

Linear (grootoorvleermuis)

Page 19: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.19Informatica

Exponentiele groei• 1rste vakje 1 graankorrel• 2de vakje 2 graankorrels• ...• 16de vakje ... graankorrels• ...• 64ste vakje ... graankorrels

• maak nieuw workbook• A kolom: serie 1 ... 64• B1=POWER(2;A1)

– fill down: B64=POWER(2;A64)• Selecteer {B1:B64}• Create Chart: Line chart

Page 20: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.20Informatica

Aantal Graankorrels

0

2E+18

4E+18

6E+18

8E+18

1E+19

1,2E+1

9

1,4E+1

9

1,6E+1

9

1,8E+1

9

2E+19

1 3 5 7 911 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63

Lineaire schaal (Y-as)

Visualiseer eens van 1 ... 16

Page 21: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.21Informatica

Logaritmische schaal (Y-as)• dubbelklik op Y-as• >>Format Axis

>>Scale(1) Logarithmic Scale

Aantal Graankorrels

1

10

100

1000

10000

100000

100000

0

1E+07

1E+08

1E+09

1E+10

1E+11

1E+12

1E+13

1E+14

1E+15

1E+16

1E+17

1E+18

1E+19

1E+20

1 3 5 7 911 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63

1

Page 22: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.22Informatica

Predator - Prey

N(t+1) = (1.0 - B * (N(t) - 100)) * N(t) - K * N(t) * P(t)P(t+1) = Q * N(t) * P (t)

N(t): the population of prey in generation tP(t): the population of predators in generation tB: the net birth-rate factorK: the kill-rate factorQ: efficiency in use of prey

Page 23: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.23Informatica

Tekenen van functies(1/4)• Maak blanco werkboek• (1) Definieer namen

N0, P0, B, K Q(50 - 0,2 - 0.005 - 0,5 - 0,0205)

• (2) Definieer serie t: 0 - 40• (3) B11 = N0, C11 = P0• (4) B12 = (1-B*(B11-100))*B11-

K*B11*C11• (5) C12 = Q*B11*C11• Fill down tot rij 51• Selecteer {A10:C51}• Insert Chart >> Line Chart• Maak zwart-wit

1

2 34 5

Page 24: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.24Informatica

Tekenen van functies(2/4)Predator/Prey

0

10

20

30

40

50

60

70

80

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

Generation

Prey Prey(t)

Predator(t)

Page 25: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.25Informatica

Tekenen van functies(3/4)• Rechtsklik op "predator" line

>> Format Data Series• (1) Axis >>

Plot series on: secondary axis

• Menu Chart >> Chart Options...

• (2) Titles >>Second value (Y) Axis

"Predator"

1

2

Page 26: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.26Informatica

Tekenen van functies(4/4)Predator/Prey

0

10

20

30

40

50

60

70

80

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

Generation

Prey

0

0,1

0,2

0,3

0,4

0,5

0,6

0,7

0,8

0,9

1

Predator

Prey(t)

Predator(t)

• Probeer waardes• N0: 60, 70, ...• P0: 0.25, 0.3, ...

• B: 0.0055, 0.0006,0.00065

• K: 0.25, 0.3, 0.19,0.18

Page 27: Informatica - LORElore.ua.ac.be/Teaching/Info1BIO/03Grafieken.pdf · Universiteit Antwerpen Grafieken Informatica 3.1 Informatica 1rste BAC Biologie Hoofdstuk 3 Grafieken

Universiteit Antwerpen Grafieken

3.27Informatica

Conclusie• Basisvaardigheden

– Creëer Zip-file• Grafieken

– Histogram– Box-plot– Scatterplot & Trend line– Logaritmische schaal– Functies tekenen

• Huiswerk– Maak histogram van freqentiedistributie (zie vorige week)