[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

post your best R/mathematica/matlab/python graphs

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 91
Thread images: 32

File: fromthebook.png (40KB, 499x377px) Image search: [Google]
fromthebook.png
40KB, 499x377px
post your best R/mathematica/matlab/python graphs
>>
File: fromthebook2.png (25KB, 499x377px) Image search: [Google]
fromthebook2.png
25KB, 499x377px
bumpity
>>
File: fromthebook3.png (19KB, 499x377px) Image search: [Google]
fromthebook3.png
19KB, 499x377px
ruuuududuuuuuu
>>
File: marginals.png (32KB, 499x377px) Image search: [Google]
marginals.png
32KB, 499x377px
come on lads
>>
No titles or units on graphs. Disgusting
>>
>>8770105

kill yourself, this is about data visualization, not about finshed products
>>
File: figure_1.png (53KB, 1182x773px) Image search: [Google]
figure_1.png
53KB, 1182x773px
some number sequence relations
>>
what do you guys use for viewing those graphs? anyone know a free program that can do this?
>>
>>8770154
Yes, R, mathematica, matlab, and python can all do this well.

What exactly are you looking for? If you already have a bunch of data already made, matlab would be overkill but still a great way to do it. Mathematica would be just annoying to do, and python would be great if you already had code made for it.
>>
>>8770154

free: R, package: ggplots2
Python package matplotlib

non free: matlab, mathematica. but your university may give them to you for free


like your previous responder said, depending on what you have in terms of data I can recommend you a software
>>
>>8770197
i like graphs, I like to use them to understand concepts that I'm dealing with in mathematics, it helps visualize some things

could I use python to view composite functions and other non-basic stuff? you know a good library that can do that? It would be great if there were libraries that let you graph integrals, for example. I mean, anything more advanced than the usual math shit that comes in programming language standard libraries (abs, trig, etc).
>>
>>8770124
you reek of autism
>>
>>8770205
I want to learn classical mechanics, optics and re-learn linear algebra and calculus for a 3d computer graphics course, I want to have a good tool for plotting functions and data that I can use to understand some shit more easily by looking at visual patterns
>>
>>8770207
>could I use python to view composite functions and other non-basic stuff? you know a good library that can do that?

numpy and mathplotlib should do it I guess
>>
>>8770222
>>8770205
thank you very much, I'll go with python
>>
>>8770215

for that pure mathematical purpose without a doubt mathematica is the best. It is the most equip at visualizations outside a statistical framework.

example: https://www.raspberrypi.org/blog/give-us-your-best-mathematica-one-liner/

https://www.quora.com/What-is-the-coolest-thing-you-can-do-with-Mathematica
>>
>>8770207
Graphing composite functions would be best on Matlab/Mathematica (both are equal in this case). Python would be fine but you'd have to find those libraries on your own since I don't know them. Based on what I had to do, numpy and matplotlib worked fine.

Also desmos.com/calculator is useful as well for easier functions.

>>8770215
Based on that, I'd recommend either pirating Matlab (2015 version) or going with python.
>>
without a doubt R:ggplot2 is the superior statistical/data analysis visualization tool, with python+numpy+matplotlib a close 2nd
>>
File: shape.png (52KB, 749x611px) Image search: [Google]
shape.png
52KB, 749x611px
>>
File: particlegif.gif (1MB, 1000x1000px) Image search: [Google]
particlegif.gif
1MB, 1000x1000px
>>
>>8770245
I see. Looks like that python combination of libraries is mentioned a lot, so I should learn it. I'll avoid R just because python is a more valuable skill than knowing R since it applies to more types of jobs, so it increases employability more IMO.

>>8770232
I wanted to avoid matlab / mathematica but I guess they're worth a pirate in case python won't do the job

>>8770231
thanks, yeah, I've seen lots of interesting shit being done with it, it's fun staring at those graphs and trying to understand the patterns that form in them even if you don't fully understand the mathematical processes that cause those graphs to be the way they are
>>
>>8770268

yea python is also more robust than R, in my industry (quant finance) python is the main tool and R is a side tool. helps to have but wont make or break you
>>
File: ggplot_masterlist_23.png (13KB, 720x445px) Image search: [Google]
ggplot_masterlist_23.png
13KB, 720x445px
continuing to chart post ggplot2 stuff
>>
File: download.png (73KB, 2880x2304px) Image search: [Google]
download.png
73KB, 2880x2304px
this is the best one i think i have ever seen fromr
>>
>>8770268
If you know Python, learning R is piss-easy, and Python just still can't compete with R for basic capabilities for data manipulation and exploration.
>>
>>8770268
R is so easy even psychologists use it.
>>
File: graph.png (30KB, 898x664px) Image search: [Google]
graph.png
30KB, 898x664px
>>
File: dd1U7GL.jpg (19KB, 306x306px) Image search: [Google]
dd1U7GL.jpg
19KB, 306x306px
>>8770306
>no title
>>
>>8770296
how do you get the colors to blend on the overlaps like that in ggplot?
>>
File: crect146_4x6.jpg (882KB, 4800x3200px) Image search: [Google]
crect146_4x6.jpg
882KB, 4800x3200px
>>8770478
contributing also. don't have much on this machine.
>>
File: Trebuchet.png (118KB, 800x600px) Image search: [Google]
Trebuchet.png
118KB, 800x600px
>>8770002
>>
>>
File: faraday_torr_test.png (30KB, 1177x761px) Image search: [Google]
faraday_torr_test.png
30KB, 1177x761px
>>
File: 3coursework12.png (28KB, 617x490px) Image search: [Google]
3coursework12.png
28KB, 617x490px
>tfw bullshitted way through scientific computing course
>got 100% on all the coursework
>>
>>8770469
Protip: figures that get published often have no titles at all. That's what legends are for.
>>
File: 435947543765.jpg (36KB, 792x501px) Image search: [Google]
435947543765.jpg
36KB, 792x501px
>>8770002
>>
>>8770143
>>8770883
They're sooo preeeeetty
>>
File: map.png (751KB, 1147x997px) Image search: [Google]
map.png
751KB, 1147x997px
>>8770002
Possibly this. Made in R.
>>
File: stackedpiechart.png (55KB, 821x666px) Image search: [Google]
stackedpiechart.png
55KB, 821x666px
>>8770002
Made in R
>>
>>8770491
Yes. My dick is so hard. So fucking hard.
>I want to fuck that trebuchet
>>
File: v.gif (2MB, 360x360px) Image search: [Google]
v.gif
2MB, 360x360px
Give me a 2D shape and I'll solve some PDEs over it.
>>
>>8771693
how do you make it so sexy in R

I had a R economic class and made realy ugly basic graphs
>>
>>8770154
Octave is really good. gonna sound like a shill here, but i used this on my senior thesis in math so I'm gonna say how much i like it anyway. it's a free open source scientific programming environment with 99% Matlab compatible scripts. it's basically the same as personal use Matlab with no add ons. very good, i was able to write a bunch of curve fitting software in it. I'll post some good plots in it when i finish my exams today.
>>
>>8771760
Use dplyr to split your data, use ggplot2 for the graph, create a bar chart, put it into polar coordinates to make it a pie chart, make it a stacked pie chart by making your alpha level and your colours represent categories, use a built in automatic colour scheme, use Cairo to do the anti-aliasing and make it look smooth.
>>
>>8771763
The problem is the fact that it doesn't have the MATLAB add ons. You're better off using an open-source language with more support in that case, like Python or R.
>>
>>8771728
Swastika.
>>
>>8771341
oh my
>>
File: wave.webm (2MB, 360x360px) Image search: [Google]
wave.webm
2MB, 360x360px
>>8771969
>>
>>8771728

pentagram
>>
>>8770491
That's actually pretty based
>>
>>8770478

alpha = (number between 0 and 1)
>>
>>8771760

ggplot2 dude never use the base plots unless you r a heathen
>>
>>8770478

here is the code for that graph specifically, its on the widely known mpg data set

library(ggplot2)
theme_set(theme_classic())

# Plot
g <- ggplot(mpg, aes(cty))
g + geom_density(aes(fill=factor(cyl)), alpha=0.8) +
labs(title="Density plot",
subtitle="City Mileage Grouped by Number of cylinders",
caption="Source: mpg",
x="City Mileage",
fill="# Cylinders")
>>
>>8770002
>>8770029
>>8770032
>>8770095
>>8770455
>>8770883
>Gray backgrounds
This needs to die.
>>
File: whitebackground.png (31KB, 499x377px) Image search: [Google]
whitebackground.png
31KB, 499x377px
>>8772524


too lazy to add the +theme_bw() at the end, doesnt make that much of a difference, pic related

(comparing with >>8770095)
>>
>>8772540
The difference is better contrast, better performance in print. Gray backgrounds are the worst kind of form over function. The only reason why people think it looks good is because it looks different and new.

The plot looks shit anyway, but that's your fault.
>>
>>8770143
I noticed some ppl on this board want to learn python to plot things so here is the code for that pic:

http://pastebin.com/7L1vZHQu
>>
>>8772566
>the plot looks like shit anyway

pmsl, post a plot youve made? and youre wrong, gray is just the default background for ggplot2, as stated before in the thread this is just for meandering not finished products ready to be printed in 100000 copies of a texbook
>>
I've been considering learning mathematica. How is it in comparison to matlab?
>>
File: quadratic.png (43KB, 634x426px) Image search: [Google]
quadratic.png
43KB, 634x426px
Any love for Gnumeric?
>>
>>8772821
Pretty cool, how'd you gather the data? Did you manually take note of it all everyday, or did you have some sort of program take the measurements daily?
>>
>>8772834

not him but I autistically asked him the same question the other day when he made the thread and he downloads the data from his electricity provider and just gets weather data online. P cool, but have never heard of gnumeric
>>
>>8772834
My utility company lets me download my usage as a csv. They have smart meters that are internet connected.
>>
File: ranger.png (37KB, 597x441px) Image search: [Google]
ranger.png
37KB, 597x441px
>>8772840
Yeah it's primarily a Linux program. They stopped releasing a Windows version several years ago. I'm glad someone remembered my thread! Here's the graph I use to keep track of my fuel economy.
>>
>>8772855

post more, and yea that was a memorable thread

how do you keep track of city vs total miles? v v interesting
>>
>>8772866
Total miles is the trip odometer for each fill up. I keep track of all highway miles I drive during each tank of gas, then subtract that from total miles to get city miles, then turn it into a percentage of total miles. So say 400 miles on a tank, 100 on the highway, means 75% (300) will be city.
>>
File: output5.webm (3MB, 768x512px) Image search: [Google]
output5.webm
3MB, 768x512px
>>
File: Fig 9.png (165KB, 2564x2323px) Image search: [Google]
Fig 9.png
165KB, 2564x2323px
You can all fuck off with your fancy graphs

Excel master race here
>>
File: gnuoctave.png (10KB, 200x200px) Image search: [Google]
gnuoctave.png
10KB, 200x200px
>>8771763
Octave is good shit. Octave-forge is developing a good library of functions if you miss the MathWorks stuff.
>>
>>8773434
Looks like it came from a reference book. Nice1
>>
>>8773104
This is dope, cellular automaton? Mind explaining some more about it?
>>
File: DHaYhsZ.jpg (3MB, 2432x4320px) Image search: [Google]
DHaYhsZ.jpg
3MB, 2432x4320px
>>8773434
hand drawn autist graphs ftw
>>
>>8772513
you can make base plots look exactly like ggplot with about the same amount of effort, and you don't have to use the weird grammar of ggplot

i mean i still use ggplot, but it's not inherently better than base graphics. it's just that the defaults for base graphics look pretty terrible
>>
>>8770211

You reek of genuine bullshit
>>
>>8773587
Stay away from Octave, it's shit. If you want to learn something useful go for Python or R.
>>
>ITT: people with skills, but without real data

Sophistry.
>>
>>8774234
No, GNU Octave is good shit.
>>
>>8774269
mine was based on real data
>>
>>8774405
I hereby exclude you from my predication.
>>
File: problemSet1_2a.png (100KB, 504x309px) Image search: [Google]
problemSet1_2a.png
100KB, 504x309px
I was looking for some matlab code I wrote to simulate a Belousov–Zhabotinsky reaction but I seem to have lost the code.. So here's a bifurcation diagram instead
>>
>>8774384
Go on wasting your time with it then.
>>
>>8774520
Go on being a poor NEET
>>
File: graddescent.png (97KB, 591x601px) Image search: [Google]
graddescent.png
97KB, 591x601px
HOHOHOHOHOHO

SILLY RABBIT
>>
>>8773973
Try and make a bar graph with partial transparency.
>>
>>8775367
http://stackoverflow.com/questions/32905859/overlap-bar-charts-with-transparency
>>
>>8775663
If you have to create your own colours instead of sticking in additional arguments for alpha, that's not too great; makes it harder to scale alpha with a variable, for instance.
>>
>>8772184
>>8771728

what are you doing this in. I've been wanting to use python to do some wave mechanics but have been too lazy. also seems like it would be a pain to set up the boundary conditions without spending the time to make a functional gui to go with it.
>>
>>8772576
Thank you.
>>
File: composite_output.png (330KB, 5250x5446px) Image search: [Google]
composite_output.png
330KB, 5250x5446px
not really /sci/ related

made in matlab tho
>>
>>8778041
dis a big graph mane
>>
>>8778050

for you
Thread posts: 91
Thread images: 32


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.