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

Snips Tagged "" 20 results found

Inserting an image HTML 345
Author: Ryan Bradley-Evans (Admin) Posted On: Tuesday, October 7, 2014 at 8:24 AM

Inserting an image in HTML from a link

Increasing Spacing between Words CSS 428
Author: Posted On: Wednesday, October 29, 2014 at 8:01 PM

This snip will increase the spacing between each word.

Text Alignment CSS 295
Author: Posted On: Wednesday, October 29, 2014 at 8:04 PM

This snippet will align any entered text

Plotting a basic graph in R from a ASCII file R 395
Author: Ryan Bradley-Evans (Admin) Posted On: Sunday, November 2, 2014 at 5:01 AM

test.dat is the name of the ASCII saved in the working directory.

common graph types are; "p" for points, "l" for lines, "b" for both, "c" for the lines part alone of "b", "o" for both ?overplotted?, "h" for ?histogram? like (or ?high-density?) vertical lines, "s" for stair steps, "n" for no plotting.




Simple Graph Plotting R 307
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

Hello, World! Ocaml 341
Author: James Brimer Posted On: Thursday, November 27, 2014 at 6:00 PM

Test snippet. 

Regression line R 333
Author: Ryan Bradley-Evans (Admin) Posted On: Thursday, November 27, 2014 at 6:44 PM

Plot a regression line in R and print the summary of the regression line.





Error bars. R 286
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 397
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

Christmas Tree R 342
Author: Ryan Bradley-Evans (Admin) Posted On: Tuesday, December 2, 2014 at 11:54 AM

Plots a Christmas tree with decorations in random places along the branches. try running the same code a few times to see for your self!


xmas tree