Welcome to Code Sharer, a code gallery for creating, saving and sharing all kinds of code snippets.

Snips Tagged "graph" 6 results found

Simple Graph Plotting R 386
Author: Matt Posted On: Monday, November 3, 2014 at 9:30 PM


This is just a simple introduction to plotting graphs in R.





'type="l"' = line plot graph type

'xlab' and 'ylab' = x and y labels


'main' = title of graph

Error bars. R 377
Author: Ryan Bradley-Evans (Admin) Posted On: Friday, November 28, 2014 at 2:12 AM

Plot error bars for both x and y in R 

Heart Graph R 600
Author: Ryan Bradley-Evans (Admin) Posted On: Tuesday, December 2, 2014 at 11:27 AM

"lwd" is the width of the line
Heart R plot

Simple Spirograph Python 148
Author: Ryan Bradley-Evans (Admin) Posted On: Sunday, June 24, 2018 at 1:37 PM

Simple code to draw Spirographs by repeating circles.

Draw a Circle using Turtle in Python 3 Python 198
Author: Ryan Bradley-Evans (Admin) Posted On: Friday, August 3, 2018 at 6:06 AM

This is a short script shows you how to draw a circle using the Turtle package in Python 3.

I have done a staged circle so you can gain some appreciation as to how the turtle.circle() function works.

The colours are defined using HTML colour codes.





Fractal tree in Python 3 using Turtle Python 550
Author: Ryan Bradley-Evans (Admin) Posted On: Monday, August 6, 2018 at 5:48 AM