Knowledge

File:Comparison of simple power law curves in original and log-log scale.png

Source 📝

38: 299: 305: 310: 90: 893: 244:
In each plot: - The data is represented by a black line. - A dashed red line is included in each plot, representing a line with a 0 intercept and a slope of 1, for reference. - The x-axis and y-axis are labeled appropriately, with the axes in the log10-log10 plots labeled as log10(x) and log10(y). -
240:
The R code provided above generates a grid of six plots, arranged in two columns and three rows, showcasing different mathematical functions both in their original scale and in a log10-log10 scale. The functions displayed include a linear function (y = x), a concave function (y = sqrt(x)), and a
203:
data_linear_log <- data.frame(x = log10(x_values), y = log10(linear_function(x_values))) data_concave_log <- data.frame(x = log10(x_values), y = log10(concave_function(x_values))) data_convex_log <- data.frame(x = log10(x_values), y = log10(convex_function(x_values)))
171:
x_values <- seq(0.001, 10, length.out = 1000) data_linear <- data.frame(x = x_values, y = linear_function(x_values)) data_concave <- data.frame(x = x_values, y = concave_function(x_values)) data_convex <- data.frame(x = x_values, y = convex_function(x_values))
56: 52: 48: 42: 101: 69: 351:– You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. 233:
plot_concave, plot_concave_log, plot_convex, plot_convex_log, ncol = 2, top = "Comparison of Linear, Concave, and Convex Functions\nIn original (left) and log10 (right) scales")
241:
convex function (y = x^2). Each of these functions is depicted in two plots: one showing the relationship in its original scale and the other showing the relationship in a log10-log10 scale.
929: 247:
This visualization serves to demonstrate how different types of mathematical relationships are represented both in their normal scale and when transformed into a logarithmic scale.
216:
geom_line() + geom_abline(intercept = 0, slope = 1, linetype = "dashed", color = "red") + ggtitle("Concave (Log10-Log10): y = x^(1/2)") + ylim(0,1) + xlim(0,1)
222:
geom_line() + geom_abline(intercept = 0, slope = 1, linetype = "dashed", color = "red") + ggtitle("Convex (Log10-Log10): y = x^2") + ylim(0,1) + xlim(0,1)
210:
geom_line() + geom_abline(intercept = 0, slope = 1, linetype = "dashed", color = "red") + ggtitle("Linear (Log10-Log10): y = x") + ylim(0,1) + xlim(0,1)
163:
linear_function <- function(x) x concave_function <- function(x) sqrt(x) convex_function <- function(x) x^2 identity_line <- function(x) x
189:
geom_line() + geom_abline(intercept = 0, slope = 1, linetype = "dashed", color = "red") + ggtitle("Concave: y = x^(1/2)") + ylim(0,10) + xlim(0,10)
276: 195:
geom_line() + geom_abline(intercept = 0, slope = 1, linetype = "dashed", color = "red") + ggtitle("Convex: y = x^2") + ylim(0,10) + xlim(0,10)
183:
geom_line() + geom_abline(intercept = 0, slope = 1, linetype = "dashed", color = "red") + ggtitle("Linear: y = x") + ylim(0,10) + xlim(0,10)
892: 887: 60: 37: 726: 604: 568: 532: 245:
Each plot has a title describing the function and indicating whether it is in the original scale or in the log10-log10 scale.
940:
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
358: 821: 784: 747: 692: 658: 588: 516: 488: 473: 460: 719: 624: 552: 433: 416: 480: 320: 943:
If the file has been modified from its original state, some details may not fully reflect the modified file.
357:– If you remix, transform, or build upon the material, you must distribute your contributions under the 149:
repr.plot.width = 10, # in inches (default = 7) repr.plot.height = 13 # in inches (default = 7)
317: 109: 400:
Comparison of Linear, Concave, and Convex Functions\nIn original (left) and log10 (right) scales
495: 924: 903: 96: 292:
I, the copyright holder of this work, hereby publish it under the following license:
256: 134:
Comparison of simple power law curves in original and log-log scale.png
860:
Click on a date/time to view the file as it appeared at that time.
84: 213:
plot_concave_log <- ggplot(data_concave_log, aes(x, y)) +
219:
plot_convex_log <- ggplot(data_convex_log, aes(x, y)) +
207:
plot_linear_log <- ggplot(data_linear_log, aes(x, y)) +
569:
Creative Commons Attribution-ShareAlike 4.0 International
930:
User:Talgalili/sandbox/Log transformation (statistics)
186:
plot_concave <- ggplot(data_concave, aes(x, y)) +
74:(1,200 × 1,560 pixels, file size: 110 KB, MIME type: 128: 108:
Commons is a freely licensed media file repository.
192:plot_convex <- ggplot(data_convex, aes(x, y)) + 180:plot_linear <- ggplot(data_linear, aes(x, y)) + 368:https://creativecommons.org/licenses/by-sa/4.0 89: 374:Creative Commons Attribution-Share Alike 4.0 298: 8: 496:https://commons.wikimedia.org/User:Talgalili 230:grid.arrange(plot_linear, plot_linear_log, 334:– to copy, distribute and transmit the work 945: 862: 396: 321:Attribution-Share Alike 4.0 International 708:be57b9cc41a4b2544bb467d16a7021e2409d71f8 955: 947: 922: 835: 819: 798: 782: 761: 745: 706: 690: 672: 656: 638: 622: 602: 586: 566: 550: 530: 514: 447: 431: 414: 411: 392: 385: 920:The following 2 pages use this file: 7: 155:library(ggplot2) library(gridExtra) 910:Uploaded own work with UploadWizard 851: 309: 304: 938: 405: 399: 295: 291: 138: 121: 67: 404: 390: 345:Under the following conditions: 316:This file is licensed under the 308: 303: 297: 88: 21: 387: 144:R code to reproduce the image: 139: 14: 386: 26: 1: 605:original creation by uploader 31: 412:Items portrayed in this file 226:Arrange the plots in a grid 977: 359:same or compatible license 852: 266: 16: 389: 325: 95:This is a file from the 909: 272: 262: 255: 252: 131: 99:. Information from its 102:description page there 41:Size of this preview: 949:Horizontal resolution 720:determination method 199:Log10 transformation 159:Define the functions 61:1,200 × 1,560 pixels 957:Vertical resolution 888:13:21, 4 March 2024 340:– to adapt the work 47:Other resolutions: 474:Wikimedia username 461:author name string 964: 963: 913: 553:copyright license 398: 282: 281: 117: 116: 97:Wikimedia Commons 968: 946: 900: 840: 803: 766: 729: 724: 517:copyright status 498: 493: 483: 478: 468: 465: 381: 378: 375: 372: 369: 361:as the original. 318:Creative Commons 312: 311: 307: 306: 301: 300: 268: 258: 143: 135: 129: 113: 92: 91: 85: 79: 77: 64: 57:591 × 768 pixels 53:369 × 480 pixels 49:184 × 240 pixels 43:461 × 599 pixels 976: 975: 971: 970: 969: 967: 966: 965: 934: 914: 906: 898: 854: 853: 850: 849: 848: 847: 846: 845: 844: 843: 841: 838: 828: 827: 826: 824: 813: 812: 811: 810: 809: 808: 807: 806: 804: 801: 791: 790: 789: 787: 776: 775: 774: 773: 772: 771: 770: 769: 767: 764: 754: 753: 752: 750: 739: 738: 737: 736: 735: 734: 733: 732: 731: 730: 725: 722: 713: 712: 711: 709: 699: 698: 697: 695: 684: 683: 682: 681: 680: 679: 678: 677: 675: 665: 664: 663: 661: 650: 649: 648: 647: 646: 645: 644: 643: 641: 631: 630: 629: 627: 616: 615: 614: 613: 612: 611: 610: 609: 607: 595: 594: 593: 591: 580: 579: 578: 577: 576: 575: 574: 573: 571: 559: 558: 557: 555: 544: 543: 542: 541: 540: 539: 538: 537: 535: 523: 522: 521: 519: 508: 507: 506: 505: 504: 503: 502: 501: 500: 499: 494: 491: 485: 484: 479: 476: 470: 469: 466: 463: 454: 453: 452: 450: 440: 439: 438: 436: 425: 424: 423: 422: 421: 419: 403: 402: 401: 384: 383: 382: 379: 376: 373: 370: 367: 366: 324: 313: 294: 293: 288: 283: 248: 235: 223: 217: 211: 196: 190: 184: 150: 133: 126: 119: 118: 107: 106: 105:is shown below. 81: 75: 73: 66: 65: 46: 12: 11: 5: 974: 972: 962: 961: 958: 954: 953: 950: 937: 933: 932: 927: 918: 917: 912: 911: 908: 904: 901: 897:1,200 × 1,560 895: 890: 885: 881: 880: 877: 874: 871: 868: 865: 858: 857: 842: 836: 834: 833: 832: 831: 830: 829: 825: 820: 818: 817: 816: 815: 814: 805: 799: 797: 796: 795: 794: 793: 792: 788: 783: 781: 780: 779: 778: 777: 768: 762: 760: 759: 758: 757: 756: 755: 751: 746: 744: 743: 742: 741: 740: 718: 717: 716: 715: 714: 710: 707: 705: 704: 703: 702: 701: 700: 696: 691: 689: 688: 687: 686: 685: 676: 673: 671: 670: 669: 668: 667: 666: 662: 657: 655: 654: 653: 652: 651: 642: 639: 637: 636: 635: 634: 633: 632: 628: 623: 621: 620: 619: 618: 617: 608: 603: 601: 600: 599: 598: 597: 596: 592: 589:source of file 587: 585: 584: 583: 582: 581: 572: 567: 565: 564: 563: 562: 561: 560: 556: 551: 549: 548: 547: 546: 545: 536: 531: 529: 528: 527: 526: 525: 524: 520: 515: 513: 512: 511: 510: 509: 487: 486: 472: 471: 459: 458: 457: 456: 455: 451: 448: 446: 445: 444: 443: 442: 441: 437: 432: 430: 429: 428: 427: 426: 420: 415: 413: 410: 409: 408: 407: 406: 395: 394: 391: 388: 365: 364: 363: 362: 352: 343: 342: 341: 335: 328:You are free: 315: 314: 296: 290: 289: 287: 284: 280: 279: 274: 270: 269: 264: 260: 259: 254: 250: 249: 232: 228: 227: 221: 215: 209: 201: 200: 194: 188: 182: 178: 177: 169: 168: 161: 160: 148: 136: 127: 125: 122: 120: 115: 114: 93: 83: 82: 40: 36: 35: 34: 29: 24: 19: 13: 10: 9: 6: 4: 3: 2: 973: 959: 956: 951: 948: 944: 941: 935: 931: 928: 926: 923: 921: 915: 907: 902: 896: 894: 891: 889: 886: 883: 882: 878: 875: 872: 869: 866: 864: 863: 861: 855: 823: 786: 749: 728: 721: 694: 660: 626: 606: 590: 570: 554: 534: 518: 497: 490: 482: 475: 462: 435: 418: 371:CC BY-SA 4.0 360: 356: 353: 350: 347: 346: 344: 339: 336: 333: 330: 329: 327: 326: 322: 319: 302: 285: 278: 275: 271: 265: 261: 251: 246: 242: 238: 231: 225: 224: 220: 214: 208: 205: 198: 197: 193: 187: 181: 175: 174: 173: 167:Generate data 166: 165: 164: 158: 157: 156: 153: 147: 146:``` options( 142: 137: 130: 123: 111: 104: 103: 98: 94: 87: 86: 80: 71: 70:Original file 62: 58: 54: 50: 44: 39: 33: 30: 28: 25: 23: 20: 18: 15: 942: 939: 925:Log–log plot 919: 859: 856:File history 640:4 March 2024 354: 348: 337: 331: 257:4 March 2024 243: 239: 236: 229: 218: 212: 206: 202: 191: 185: 179: 176:Create plots 170: 162: 154: 151: 145: 140: 110:You can help 100: 68: 22:File history 533:copyrighted 355:share alike 349:attribution 132:Description 916:File usage 873:Dimensions 659:media type 449:some value 27:File usage 960:47.24 dpc 952:47.24 dpc 905:Talgalili 870:Thumbnail 867:Date/Time 748:data size 674:image/png 625:inception 481:Talgalili 467:Talgalili 286:Licensing 277:Talgalili 141:English: 76:image/png 936:Metadata 899:(110 KB) 763:113,036 693:checksum 393:Captions 338:to remix 332:to share 323:license. 267:Own work 32:Metadata 884:current 879:Comment 434:creator 417:depicts 397:English 124:Summary 72:‎ 837:1,200 800:1,560 785:height 273:Author 263:Source 839:pixel 822:width 802:pixel 727:SHA-1 876:User 765:byte 380:true 377:true 253:Date 237:``` 17:File 489:URL 723:: 492:: 477:: 464:: 152:) 59:| 55:| 51:| 45:. 112:. 78:) 63:.

Index

File
File history
File usage
Metadata
File:Comparison of simple power law curves in original and log-log scale.png
461 × 599 pixels
184 × 240 pixels
369 × 480 pixels
591 × 768 pixels
1,200 × 1,560 pixels
Original file
Wikimedia Commons
description page there
You can help
Talgalili
Creative Commons
Attribution-Share Alike 4.0 International
same or compatible license
depicts
creator
author name string
Wikimedia username
Talgalili
URL
https://commons.wikimedia.org/User:Talgalili
copyright status
copyrighted
copyright license
Creative Commons Attribution-ShareAlike 4.0 International
source of file

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.