R version 4.2.3 (2023-03-15 ucrt) -- "Shortstop Beagle" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > read.table("adat3.txt") V1 V2 1 x y 2 0 2.10481940505652 3 0.05 1.9758901247419 4 0.1 1.67085237128386 5 0.15 2.40052955363544 6 0.2 2.61318158079299 7 0.25 1.78062133285292 8 0.3 2.04470005743867 9 0.35 2.44629402497802 10 0.4 2.02794943864399 11 0.45 1.40355147270907 12 0.5 1.10228174387648 13 0.55 2.92513672342777 14 0.6 2.13743136947092 15 0.65 2.90880585677623 16 0.7 1.58513650002728 17 0.75 1.16521290862813 18 0.8 2.78908969119746 19 0.85 2.7494542386948 20 0.9 1.92958087363332 21 0.95 1.96473149302408 22 1 1.60235815306752 23 1.05 2.13097306032907 24 1.1 2.34591958526061 25 1.15 1.56583531557445 26 1.2 1.20613778157824 27 1.25 2.13088653480366 28 1.3 2.03765432751269 29 1.35 1.48375759652789 30 1.4 1.68069427326392 31 1.45 0.690635420166352 32 1.5 0.862303427500673 33 1.55 1.03945359540869 34 1.6 -0.321987856825974 35 1.65 1.23873603190142 36 1.7 0.440965824380731 37 1.75 0.652320449904225 38 1.8 1.12994658593902 39 1.85 0.598278304365951 40 1.9 0.112182799242284 41 1.95 -0.104092462068107 42 2 0.709509645980591 43 2.05 0.531913545661334 44 2.1 -0.179358110409157 45 2.15 -0.116843414277936 46 2.2 -0.714236564475621 47 2.25 -0.386320490779674 48 2.3 -0.130826157444354 49 2.35 -0.916633735998056 50 2.4 -0.672047308114194 51 2.45 -0.892092187413036 52 2.5 -0.643270061997443 53 2.55 -2.25036730340555 54 2.6 -1.0552638248694 55 2.65 -1.53544400316579 56 2.7 -1.53056121865341 57 2.75 -0.602105858908352 58 2.8 -2.15289853949499 59 2.85 -1.22618253750189 60 2.9 -1.53309577078877 61 2.95 -1.55621085909043 62 3 -1.9717397700228 63 3.05 -1.22243595788986 64 3.1 -2.33713425699981 65 3.15 -1.65481583473066 66 3.2 -1.73478379975358 67 3.25 -1.87737161346185 68 3.3 -2.68380756403432 69 3.35 -2.18778980726083 70 3.4 -2.55393392034716 71 3.45 -1.45459200472482 72 3.5 -1.65860454015542 73 3.55 -2.14561216027616 74 3.6 -1.45292897941295 75 3.65 -1.70463595475703 76 3.7 -1.8332623650452 77 3.75 -2.38507285880302 78 3.8 -2.50834664110956 79 3.85 -2.56977557274616 80 3.9 -1.89238660587975 81 3.95 -2.24771417650974 82 4 -2.88219928118753 83 4.05 -2.3603504480358 84 4.1 -1.23362051492129 85 4.15 -2.15480213888551 86 4.2 -1.37007243318225 87 4.25 -1.27866627438117 88 4.3 -1.23972214048674 89 4.35 -1.00405156235087 90 4.4 -1.34725320803701 91 4.45 -1.24950465696749 92 4.5 -1.10607727579772 93 4.55 -1.38465204572152 94 4.6 -1.0967093475361 95 4.65 -0.359108298040211 96 4.7 -1.16437931064525 97 4.75 -1.46500410904024 98 4.8 -0.711822185448719 99 4.85 -0.140842799883969 100 4.9 0.0657658739409412 101 4.95 -0.293907349907818 102 5 -0.338681244290256 103 5.05 0.556780135662054 104 5.1 -0.352073313641331 105 5.15 0.448293674699299 106 5.2 -0.401415498319647 107 5.25 -0.0969859506531733 108 5.3 0.581976834724465 109 5.35 -0.0287302325223689 110 5.4 -0.14810556330687 111 5.45 1.12979176638226 112 5.5 1.41379107390335 113 5.55 0.681781777746731 114 5.6 1.27183904301868 115 5.65 0.868617413877902 116 5.7 0.834987782627052 117 5.75 0.861235988820901 118 5.8 0.881136599992005 119 5.85 0.821437372081772 120 5.9 0.72897082869972 121 5.95 2.11660250540099 122 6 2.14863085371571 123 6.05 1.40638245453109 124 6.1 1.78119176193325 125 6.15 0.916027223734542 126 6.2 2.32407751071579 127 6.25 1.33191917840499 128 6.3 2.29154698496912 129 6.35 2.5159479325804 130 6.4 1.12755422947486 131 6.45 1.46726007520783 132 6.5 1.48120497776398 133 6.55 0.869852139791497 134 6.6 1.6020444238935 135 6.65 2.39793810077527 136 6.7 1.99399950291658 137 6.75 1.78914792534717 138 6.8 1.87695573066846 139 6.85 2.18177561498761 140 6.9 2.12908129860136 141 6.95 2.09528540707925 142 7 2.86739790391642 143 7.05 2.06278798569934 144 7.1 2.93440465614474 145 7.15 1.87098097772585 146 7.2 1.49410694895493 147 7.25 2.36911853647442 148 7.3 0.77799327473207 149 7.35 2.22967633217865 150 7.4 1.31247142431233 151 7.45 1.58789569163135 152 7.5 1.99368546089461 153 7.55 0.812088454633287 154 7.6 0.691751375588842 155 7.65 1.28849243556037 156 7.7 0.7586244837142 157 7.75 0.771274854472695 158 7.8 1.09585968745938 159 7.85 1.22080976712861 160 7.9 0.481992812315139 161 7.95 0.748942815602475 162 8 2.02066715263808 163 8.05 0.670286955679592 164 8.1 0.936365679202382 165 8.15 0.185648567749094 166 8.2 -1.17163394353259 167 8.25 1.21684162288788 168 8.3 1.0277837147312 169 8.35 -0.560915668820338 170 8.4 0.418458654961282 171 8.45 -0.362927429002937 172 8.5 0.417076561181152 173 8.55 -1.00166193925213 174 8.6 -0.221075893392929 175 8.65 -0.842121650129422 176 8.7 -0.492498511564735 177 8.75 -1.43064219642944 178 8.8 -1.22057688798013 179 8.85 -0.857690808935832 180 8.9 -0.553028404432071 181 8.95 -0.767752794916758 182 9 -1.40293449936599 183 9.05 -0.348338747792331 184 9.1 -1.97872918171382 185 9.15 -1.53638978034821 186 9.2 -1.52980246973124 187 9.25 -2.48373429145093 188 9.3 -1.71354429413576 189 9.35 -1.93102893025403 190 9.4 -1.41679350565594 191 9.45 -1.74341183985652 192 9.5 -1.4391570018478 193 9.55 -2.176823061089 194 9.6 -1.48928546356656 195 9.65 -2.49827685555298 196 9.7 -1.54829992778557 197 9.75 -2.34788027310739 198 9.8 -1.9053286810205 199 9.85 -1.57661918728363 200 9.9 -2.3597009206429 201 9.95 -1.69938362808988 202 10 -2.450401202226 > read.table("adat3.txt",header=TRUE) x y 1 0.00 2.10481941 2 0.05 1.97589012 3 0.10 1.67085237 4 0.15 2.40052955 5 0.20 2.61318158 6 0.25 1.78062133 7 0.30 2.04470006 8 0.35 2.44629402 9 0.40 2.02794944 10 0.45 1.40355147 11 0.50 1.10228174 12 0.55 2.92513672 13 0.60 2.13743137 14 0.65 2.90880586 15 0.70 1.58513650 16 0.75 1.16521291 17 0.80 2.78908969 18 0.85 2.74945424 19 0.90 1.92958087 20 0.95 1.96473149 21 1.00 1.60235815 22 1.05 2.13097306 23 1.10 2.34591959 24 1.15 1.56583532 25 1.20 1.20613778 26 1.25 2.13088653 27 1.30 2.03765433 28 1.35 1.48375760 29 1.40 1.68069427 30 1.45 0.69063542 31 1.50 0.86230343 32 1.55 1.03945360 33 1.60 -0.32198786 34 1.65 1.23873603 35 1.70 0.44096582 36 1.75 0.65232045 37 1.80 1.12994659 38 1.85 0.59827830 39 1.90 0.11218280 40 1.95 -0.10409246 41 2.00 0.70950965 42 2.05 0.53191355 43 2.10 -0.17935811 44 2.15 -0.11684341 45 2.20 -0.71423656 46 2.25 -0.38632049 47 2.30 -0.13082616 48 2.35 -0.91663374 49 2.40 -0.67204731 50 2.45 -0.89209219 51 2.50 -0.64327006 52 2.55 -2.25036730 53 2.60 -1.05526382 54 2.65 -1.53544400 55 2.70 -1.53056122 56 2.75 -0.60210586 57 2.80 -2.15289854 58 2.85 -1.22618254 59 2.90 -1.53309577 60 2.95 -1.55621086 61 3.00 -1.97173977 62 3.05 -1.22243596 63 3.10 -2.33713426 64 3.15 -1.65481583 65 3.20 -1.73478380 66 3.25 -1.87737161 67 3.30 -2.68380756 68 3.35 -2.18778981 69 3.40 -2.55393392 70 3.45 -1.45459200 71 3.50 -1.65860454 72 3.55 -2.14561216 73 3.60 -1.45292898 74 3.65 -1.70463595 75 3.70 -1.83326237 76 3.75 -2.38507286 77 3.80 -2.50834664 78 3.85 -2.56977557 79 3.90 -1.89238661 80 3.95 -2.24771418 81 4.00 -2.88219928 82 4.05 -2.36035045 83 4.10 -1.23362051 84 4.15 -2.15480214 85 4.20 -1.37007243 86 4.25 -1.27866627 87 4.30 -1.23972214 88 4.35 -1.00405156 89 4.40 -1.34725321 90 4.45 -1.24950466 91 4.50 -1.10607728 92 4.55 -1.38465205 93 4.60 -1.09670935 94 4.65 -0.35910830 95 4.70 -1.16437931 96 4.75 -1.46500411 97 4.80 -0.71182219 98 4.85 -0.14084280 99 4.90 0.06576587 100 4.95 -0.29390735 101 5.00 -0.33868124 102 5.05 0.55678014 103 5.10 -0.35207331 104 5.15 0.44829367 105 5.20 -0.40141550 106 5.25 -0.09698595 107 5.30 0.58197683 108 5.35 -0.02873023 109 5.40 -0.14810556 110 5.45 1.12979177 111 5.50 1.41379107 112 5.55 0.68178178 113 5.60 1.27183904 114 5.65 0.86861741 115 5.70 0.83498778 116 5.75 0.86123599 117 5.80 0.88113660 118 5.85 0.82143737 119 5.90 0.72897083 120 5.95 2.11660251 121 6.00 2.14863085 122 6.05 1.40638245 123 6.10 1.78119176 124 6.15 0.91602722 125 6.20 2.32407751 126 6.25 1.33191918 127 6.30 2.29154698 128 6.35 2.51594793 129 6.40 1.12755423 130 6.45 1.46726008 131 6.50 1.48120498 132 6.55 0.86985214 133 6.60 1.60204442 134 6.65 2.39793810 135 6.70 1.99399950 136 6.75 1.78914793 137 6.80 1.87695573 138 6.85 2.18177561 139 6.90 2.12908130 140 6.95 2.09528541 141 7.00 2.86739790 142 7.05 2.06278799 143 7.10 2.93440466 144 7.15 1.87098098 145 7.20 1.49410695 146 7.25 2.36911854 147 7.30 0.77799327 148 7.35 2.22967633 149 7.40 1.31247142 150 7.45 1.58789569 151 7.50 1.99368546 152 7.55 0.81208845 153 7.60 0.69175138 154 7.65 1.28849244 155 7.70 0.75862448 156 7.75 0.77127485 157 7.80 1.09585969 158 7.85 1.22080977 159 7.90 0.48199281 160 7.95 0.74894282 161 8.00 2.02066715 162 8.05 0.67028696 163 8.10 0.93636568 164 8.15 0.18564857 165 8.20 -1.17163394 166 8.25 1.21684162 167 8.30 1.02778371 168 8.35 -0.56091567 169 8.40 0.41845865 170 8.45 -0.36292743 171 8.50 0.41707656 172 8.55 -1.00166194 173 8.60 -0.22107589 174 8.65 -0.84212165 175 8.70 -0.49249851 176 8.75 -1.43064220 177 8.80 -1.22057689 178 8.85 -0.85769081 179 8.90 -0.55302840 180 8.95 -0.76775279 181 9.00 -1.40293450 182 9.05 -0.34833875 183 9.10 -1.97872918 184 9.15 -1.53638978 185 9.20 -1.52980247 186 9.25 -2.48373429 187 9.30 -1.71354429 188 9.35 -1.93102893 189 9.40 -1.41679351 190 9.45 -1.74341184 191 9.50 -1.43915700 192 9.55 -2.17682306 193 9.60 -1.48928546 194 9.65 -2.49827686 195 9.70 -1.54829993 196 9.75 -2.34788027 197 9.80 -1.90532868 198 9.85 -1.57661919 199 9.90 -2.35970092 200 9.95 -1.69938363 201 10.00 -2.45040120 > read.table("adat3.txt",header=TRUE) -> pontok > class(pontok) [1] "data.frame" > plot(pontok$x,pontok$y) > plot(pontok$x,pontok$y,col="blue") > plot(pontok$x,pontok$y,col=10) > plot(pontok$x,pontok$y,pch=3) > plot(pontok$x,pontok$y,pch=1:201) There were 50 or more warnings (use warnings() to see the first 50) > x <- seq(-2,2,1) > x [1] -2 -1 0 1 2 > y <- x^2 > y [1] 4 1 0 1 4 > plot(x,y) > plot(x,y,type="p") > ?plot starting httpd help server ... done > plot(x,y,type="l") > plot(x,y,type="b") > plot(x,y,type="c") > plot(x,y,type="o") > plot(x,y,type="h") > plot(x,y,type="s") > plot(x,y,type="S") > plot(x,y,type="l") > x <- seq(-2,2,0.1) > x [1] -2.0 -1.9 -1.8 -1.7 -1.6 -1.5 -1.4 -1.3 -1.2 -1.1 -1.0 -0.9 -0.8 -0.7 -0.6 [16] -0.5 -0.4 -0.3 -0.2 -0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 [31] 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 > y <- x^2 > plot(x,y,type="l") > plot(x,y,type="l",col="red") > plot(x,y,type="o",col="red",pch=2) > plot(x,y,type="o",lwd=0.5) > plot(x,y,type="o",lwd=3) > plot(x,y,type="o",lty=1) > plot(x,y,type="l",lty=2) > plot(x,y,type="l",lty=3) > plot(x,y,type="l",lty=4) > plot(x,y,type="l",lty=5) > plot(x,y,type="l",lty=6) > y2 <- x > points(x,y2) > plot(x,y,type="l") > lines(x,y2) > lines(x,x^2-2,col="red") > plot(x,y,type="l",ylim=c(-2,4)) > lines(x,y2) > lines(x,x^2-2,col="red") > log(1) [1] 0 > log(2) [1] 0.6931472 > log(e) Error: object 'e' not found > e Error: object 'e' not found > E Error: object 'E' not found > log(exp(1)) [1] 1 > log(c(0,1,2,3,4)) [1] -Inf 0.0000000 0.6931472 1.0986123 1.3862944 > x <- seq(0,4,0.5) > y1 <- log(x) > > > > plot(x,y1,type="l") > x [1] 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 > x <- seq(0,4,0.2) > y1 <- log(x) > > > > plot(x,y1,type="l") > x/2 [1] 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 [20] 1.9 2.0 > y2 <- log(x/2) > lines(x,y2) > lines(x,y2,col="blue") > y3 <- 3/2 * y2 > lines(x,y3,col="purple") > y4 <- y3 - 2 > lines(x,y4,col="red") > plot(x,y1,type="l",ylim=c(-5,1.5)) > lines(x,y2,col="blue") > lines(x,y3,col="purple") > lines(x,y4,col="red") > plot(x,y1,type="l",ylim=c(-6,1.5)) > lines(x,y2,col="blue") > lines(x,y3,col="purple") > lines(x,y4,col="red") > # vagy y4 <- 3/2*log(x/2) -2 > plot(x,y1,type="l",ylim=c(-6,1.5),ylab="y") > lines(x,y2,col="blue") > lines(x,y3,col="purple") > lines(x,y4,col="red") > plot(x,y1,type="l",ylim=c(-6,1.5), + ylab="y") > plot(x, + y) Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ > plot(x, + y1) > plot(x,y1,type="l",ylim=c(-6,1.5), + ylab="y") > lines(x,y2,col="blue") > lines(x,y3,col="purple") > lines(x,y4,col="red") > plot(x,y1,type="l",ylim=c(-6,1.5), + ylab="y",main="Függvénytranszformáció") > lines(x,y2,col="blue") > lines(x,y3,col="purple") > lines(x,y4,col="red") > plot(x,y1,type="l",ylim=c(-6,1.5), + ylab="y",main="Függvénytranszformáció") > lines(x,y2,col="blue",lty=3) > lines(x,y3,col="purple") > lines(x,y4,col="red") > lines(x,y4,col="red",pch=2) > lines(x,y4,col="red",pch=2,type="o") > legend(2,-4,c("log(x)","log(x/2)", + "3/2 log(x/2)","3/2log(x/2)-2") + ) > legend(2,-4,c("log(x)","log(x/2)", + "3/2 log(x/2)","3/2log(x/2)-2"), + col=c("black","blue","purple","red") + ) > legend(2,-4,c("log(x)","log(x/2)", + "3/2 log(x/2)","3/2log(x/2)-2"), + col=c("black","blue","purple","red"), + lty=1 + ) > plot(x,y1,type="l",ylim=c(-6,1.5), + ylab="y",main="Függvénytranszformáció") > lines(x,y2,col="blue",lty=3) > lines(x,y3,col="purple") > lines(x,y4,col="red",pch=2,type="o") > legend(2,-4,c("log(x)","log(x/2)", + "3/2 log(x/2)","3/2log(x/2)-2"), + col=c("black","blue","purple","red"), + lty=1 + ) > plot(x,y1,type="l",ylim=c(-6,1.5), + ylab="y",main="Függvénytranszformáció") > lines(x,y2,col="blue",lty=3) > lines(x,y3,col="purple") > lines(x,y4,col="red",pch=2,type="o") > legend(2,-4,c("log(x)","log(x/2)", + "3/2 log(x/2)","3/2log(x/2)-2"), + col=c("black","blue","purple","red"), + lty=c(1,3,1,1) + ) > plot(x,y1,type="l",ylim=c(-6,1.5), + ylab="y",main="Függvénytranszformáció") > lines(x,y2,col="blue",lty=3) > lines(x,y3,col="purple") > lines(x,y4,col="red",pch=2,type="o") > legend(2,-4,c("log(x)","log(x/2)", + "3/2 log(x/2)","3/2log(x/2)-2"), + col=c("black","blue","purple","red"), + lty=c(1,3,1,1), + pch=c(NA,NA,NA,2) + ) > ls() [1] "pontok" "x" "y" "y1" "y2" "y3" "y4" > save.image("C:\\Users\\aa002221\\Documents\\R\\10het\\szerda\\.RData") >