Shapes

Shape.square and friends

using Gadfly, RDatasets
set_default_plot_size(21cm, 8cm)

p1 = plot(dataset("HistData","DrinksWages"), x="Wage", y="Drinks",
    shape=[Shape.square], Scale.y_log10)

aww, mws = dataset("MASS", "Animals"), dataset("quantreg", "Mammals")
p2 = plot( layer(aww, x=:Body, y=:Brain, shape=["Brain weight"]),
    layer(mws, x=:Weight, y=:Speed, shape=["Run speed"]),
    Scale.x_log10, Scale.y_log10, Guide.xlabel("Body weight"),
    Guide.ylabel("Brain weight and Run speed"),
    Theme(point_shapes=[Shape.circle, Shape.star1], alphas=[0.0],
        discrete_highlight_color=identity) )
hstack(p1, p2)
Body weight 10-12 10-10 10-8 10-6 10-4 10-2 100 102 104 106 108 1010 1012 1014 1016 10-10.0 10-9.5 10-9.0 10-8.5 10-8.0 10-7.5 10-7.0 10-6.5 10-6.0 10-5.5 10-5.0 10-4.5 10-4.0 10-3.5 10-3.0 10-2.5 10-2.0 10-1.5 10-1.0 10-0.5 100.0 100.5 101.0 101.5 102.0 102.5 103.0 103.5 104.0 104.5 105.0 105.5 106.0 106.5 107.0 107.5 108.0 108.5 109.0 109.5 1010.0 1010.5 1011.0 1011.5 1012.0 1012.5 1013.0 1013.5 1014.0 10-10 100 1010 1020 10-10.0 10-9.5 10-9.0 10-8.5 10-8.0 10-7.5 10-7.0 10-6.5 10-6.0 10-5.5 10-5.0 10-4.5 10-4.0 10-3.5 10-3.0 10-2.5 10-2.0 10-1.5 10-1.0 10-0.5 100.0 100.5 101.0 101.5 102.0 102.5 103.0 103.5 104.0 104.5 105.0 105.5 106.0 106.5 107.0 107.5 108.0 108.5 109.0 109.5 1010.0 1010.5 1011.0 1011.5 1012.0 1012.5 1013.0 1013.5 1014.0 Brain weight Run speed Shape 0.60205999132796240.2041199826559248 -1.61978875828839391.1139433523068367 0.69897000433601890.8692317197309762 1.69897000433601871.8129133566428555 0.176091259055681241.6020599913279623 0.176091259055681241.6989700043360187 0.27875360095282891.7481880270062005 0.30102999566398121.806179973983887 0.54406804435027571.7481880270062005 0.60205999132796241.8573324964312685 0.64345267648618741.8573324964312685 0.66275783168157411.806179973983887 -1.79588001734407520.5563025007672873 -1.00.38021124171160603 -1.00.6020599913279624 -1.79588001734407521.1139433523068367 -1.7447274948966940.9493900066449128 -1.60205999132796230.9344984512435677 -1.60205999132796231.0413926851582251 -1.52287874528033760.9590413923210935 -1.52287874528033760.8325089127062363 -1.45593195564972431.146128035678238 -1.45593195564972431.505149978319906 -1.34678748622465631.2041199826559248 -1.30102999566398131.0413926851582251 -1.25181197299379951.3222192947339193 -1.01.2304489213782739 -0.9586073148417750.9542425094393249 -0.65757731917779371.1760912590556813 -0.60205999132796240.9867717342662449 -0.52287874528033761.1139433523068367 -0.39794000867203761.3010299956639813 -0.30102999566398121.255272505103306 -0.25963731050575611.4313637641589874 -0.22184874961635641.3010299956639813 -0.22184874961635641.5563025007672873 0.60205999132796241.2041199826559248 0.95424250943932490.505149978319906 1.11394335230683671.568201724066995 1.8450980400142571.6020599913279623 2.1038037209559571.505149978319906 0.477121254719662441.2041199826559248 0.69897000433601891.4313637641589874 0.69897000433601891.806179973983887 0.77815125038364361.8573324964312685 0.84509804001425681.7781512503836436 1.01.7481880270062005 1.04139268515822511.4771212547196624 1.07918124604762491.380211241711606 1.20411998265592481.8129133566428555 1.30102999566398131.845098040014257 1.39794000867203771.8260748027008264 1.60205999132796231.806179973983887 1.65321251377534371.6989700043360187 1.74036268949424392.041392685158225 1.77815125038364361.7781512503836436 1.81291335664285551.8129133566428555 2.1303337684950061.6812412373755872 2.17609125905568131.7708520116421442 2.3617278360175931.7481880270062005 2.47712125471966261.6812412373755872 2.60205999132796251.6020599913279623 1.30102999566398131.9084850188786497 1.47712125471966241.6532125137753437 1.47712125471966241.9030899869919435 1.47712125471966241.9867717342662448 1.53147891704225511.9867717342662448 1.54406804435027571.9030899869919435 1.5682017240669952.0211892990699383 1.69897000433601871.6720978579357175 1.69897000433601871.6020599913279623 1.69897000433601871.7781512503836436 1.69897000433601872.0 1.7923916894982541.9084850188786497 1.81291335664285551.7781512503836436 1.8450980400142571.6532125137753437 1.85733249643126851.7481880270062005 1.90308998699194351.8129133566428555 1.92941892571429261.7403626894942439 2.01.806179973983887 2.0413926851582251.5185139398778875 2.07918124604762471.7853298350107671 2.07918124604762471.9030899869919435 2.1139433523068371.845098040014257 2.17609125905568131.6812412373755872 2.2304489213782741.9030899869919435 2.39794000867203751.7481880270062005 2.39794000867203751.9030899869919435 2.47712125471966261.954242509439325 2.47712125471966261.8573324964312685 2.65321251377534351.7481880270062005 2.69897000433601871.505149978319906 2.87506126339171.7558748556724915 2.90308998699194381.462397997898956 2.95424250943932481.7481880270062005 2.95424250943932481.845098040014257 3.01.7781512503836436 3.579783596616811.3979400086720377 2.39794000867203751.6020599913279623 2.41497334797081781.845098040014257 2.47712125471966261.806179973983887 2.54406804435027571.845098040014257 2.60205999132796251.845098040014257 3.1461280356782381.6532125137753437 3.47712125471966261.3979400086720377 3.60205999132796251.414973347970818 3.77815125038364341.5440680443502757 2.28330122870354972.255272505103306 -0.91364016932525180.47712125471966244 4.9395192526186182.1889284837608534 -0.55284196865778080.2787536009528289 1.71733758272386372.6434526764861874 2.02.1958996524092336 1.74429298312267632.2430380486862944 0.39794000867203761.08278537031645 -1.6382721639824072-0.3979400086720376 -0.92081875395237520.0 1.54406804435027571.7481880270062005 0.83250891270623632.2528530309798933 3.97312785359969881.845098040014257 3.82308279653280363.7567881987681178 1.7923916894982543.12057393120585 2.3159703454569182.6085260335771943 2.72345567203518572.832508912706236 0.51851393987788741.4082399653118496 1.02.060697840353612 2.71683772329952472.816241299991783 2.272073787500012.622214022966295 3.4060289449636153.663040974893974 4.0681858617461611.6989700043360187 0.017033339298780370.7403626894942439 1.44185217577329182.060697840353612 1.56026539786271462.0773679052841563 2.6674529528899542.6263403673750423 0.130333768495006140.9084850188786497 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 10-7 10-6 10-5 10-4 10-3 10-2 10-1 100 101 102 103 104 105 106 107 108 109 1010 10-6.0 10-5.5 10-5.0 10-4.5 10-4.0 10-3.5 10-3.0 10-2.5 10-2.0 10-1.5 10-1.0 10-0.5 100.0 100.5 101.0 101.5 102.0 102.5 103.0 103.5 104.0 104.5 105.0 105.5 106.0 106.5 107.0 107.5 108.0 108.5 109.0 10-10 10-5 100 105 1010 10-6.0 10-5.8 10-5.6 10-5.4 10-5.2 10-5.0 10-4.8 10-4.6 10-4.4 10-4.2 10-4.0 10-3.8 10-3.6 10-3.4 10-3.2 10-3.0 10-2.8 10-2.6 10-2.4 10-2.2 10-2.0 10-1.8 10-1.6 10-1.4 10-1.2 10-1.0 10-0.8 10-0.6 10-0.4 10-0.2 100.0 100.2 100.4 100.6 100.8 101.0 101.2 101.4 101.6 101.8 102.0 102.2 102.4 102.6 102.8 103.0 103.2 103.4 103.6 103.8 104.0 104.2 104.4 104.6 104.8 105.0 105.2 105.4 105.6 105.8 106.0 106.2 106.4 106.6 106.8 107.0 107.2 107.4 107.6 107.8 108.0 108.2 108.4 108.6 108.8 109.0 Brain weight and Run speed Wage -50 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 -40 -35 -30 -25 -20 -15 -10 -5 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 -50 0 50 100 -40 -38 -36 -34 -32 -30 -28 -26 -24 -22 -20 -18 -16 -14 -12 -10 -8 -6 -4 -2 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 40.0,-Inf 32.00.3010299956639812 31.0833333330.3010299956639812 36.5,-Inf 36.0833333330.3010299956639812 31.5833333330.6020599913279624 40.0,-Inf 34.50.6989700043360189 31.5833333330.0 31.0833333331.2041199826559248 30.1666666670.3010299956639812 38.8333333330.6989700043360189 34.0833333331.2304489213782739 30.8333333330.0 30.8333333330.9542425094393249 33.5,0.0 37.0,-Inf 32.5,0.0 32.5833333330.6020599913279624 36.00.3010299956639812 30.250.7781512503836436 36.50.3010299956639812 34.0,-Inf 27.0,0.0 27.0,-Inf 28.00.3010299956639812 27.25,-Inf 26.1666666671.0 30.0,0.0 27.6666666670.0 25.51.3617278360175928 30.0,0.0 28.0,-Inf 30.0,-Inf 26.00.3010299956639812 28.50.6020599913279624 27.01.1760912590556813 30.0,-Inf 28.0,0.0 28.4166666670.6989700043360189 27.0,0.0 26.00.6989700043360189 25.00.47712125471966244 25.0,-Inf 25.00.47712125471966244 18.51.9294189257142926 18.0,-Inf 12.00.47712125471966244 20.0,0.0 18.00.3010299956639812 20.5,-Inf 18.5,-Inf 20.0,-Inf 13.5,-Inf 24.1666666670.3010299956639812 23.0,0.0 22.8333333330.3010299956639812 22.8333333330.9542425094393249 21.50.6020599913279624 23.666666667-Inf 22.1666666671.3617278360175928 17.3333333330.8450980400142568 23.00.6989700043360189 24.3333333330.3010299956639812 20.50.9030899869919435 19.0,-Inf 21.1666666670.6989700043360189 21.5,0.0 18.4166666671.0 24.0,0.0 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 10-2.5 10-2.0 10-1.5 10-1.0 10-0.5 100.0 100.5 101.0 101.5 102.0 102.5 103.0 103.5 104.0 104.5 10-2.0 10-1.8 10-1.6 10-1.4 10-1.2 10-1.0 10-0.8 10-0.6 10-0.4 10-0.2 100.0 100.2 100.4 100.6 100.8 101.0 101.2 101.4 101.6 101.8 102.0 102.2 102.4 102.6 102.8 103.0 103.2 103.4 103.6 103.8 104.0 10-2 100 102 104 10-2.0 10-1.9 10-1.8 10-1.7 10-1.6 10-1.5 10-1.4 10-1.3 10-1.2 10-1.1 10-1.0 10-0.9 10-0.8 10-0.7 10-0.6 10-0.5 10-0.4 10-0.3 10-0.2 10-0.1 100.0 100.1 100.2 100.3 100.4 100.5 100.6 100.7 100.8 100.9 101.0 101.1 101.2 101.3 101.4 101.5 101.6 101.7 101.8 101.9 102.0 102.1 102.2 102.3 102.4 102.5 102.6 102.7 102.8 102.9 103.0 103.1 103.2 103.3 103.4 103.5 103.6 103.7 103.8 103.9 104.0 Drinks