Miscellaneous scripts for Clark Richards

axis10exp | Format axis labels using pretty '10^exp' notation |

closeFigure | Close a device opened with 'makeFigure' |

cr-package | Miscellaneous R scripts packaged for Clark Richards. |

findNearest | Find the index for a value (or values) in a vector nearest... |

gradient | Calculate the x and y gradients for a 2D matrix |

lls | A more descriptive version of 'ls'. |

logLines | Add lines to a 'logPlot' |

logPlot | Make a nice log-log plot (base 10) |

logPoints | Add points to a 'logPlot' |

makeFigure | Open a device to plot a figure |

movingAverage | Calculates a moving average of a vector using 'filter' |

objectSize | R Object size, function needed for 'lls'. |

plotCircle | Add one or more circles to a plot |

symLim | Symmetric plot limits for plus/minus variables |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.