Re: [R] Vary an equation using values from a sequence

2018-03-14 Thread Jake William Andrae
Thank you, I�ll give it a try. Jake Get Outlook for iOS<https://aka.ms/o0ukef> From: Bert Gunter Sent: Thursday, March 15, 2018 3:23:18 PM To: Jake William Andrae Cc: R-help Subject: Re: [R] Vary an equation using values from a sequence I thnk what you w

[R] Vary an equation using values from a sequence

2018-03-14 Thread Jake William Andrae
Hi All, I have a vector of data on which I am operating. The equation with which I want to operate on the vector has a value k. I want to run the equation and output a new vector, each time replacing k with each value from the sequence I defined. I have thought about using for loops and such, b

[R] Help with marmap package

2017-02-15 Thread Jake William Andrae
Hello, I'm using the 'Marmap' R package to create ocean bathymetry maps. I've managed quite well, but I'm having a little difficulty with setting my x-axis (longitude) limits. When I run the code, the map is projected with large white bands on either side of the desired longitude limits. I've

Re: [R] Superscript in graph text

2017-01-18 Thread Jake William Andrae
= ", p), adj=0, line=0.1, col="black", cex=0.7) > > > Kind regards, > > Jake > > > > Jake Andrae > PhD Candidate > Geology & Geophysics � Sprigg Geobiology Centre > Department of Earth Science > School of Physical Sciences > The Universi

[R] Superscript in graph text

2017-01-18 Thread Jake William Andrae
Hello, I've added some statistical information as text to some graphs, but I'm having a really hard time making the 2 in the R2 label superscript. Does anyone have any suggestions? mtext(paste("R2 = ", R2), adj=0, line=1, col="black", cex=0.7) Kind regards Jake Andrae PhD Candidate Geolog

[R] Adding regression line to each individual plot in a window with multiple plots

2017-01-17 Thread Jake William Andrae
Hi Everyone, I've constructed a script that adds multiple plots to the plot window, but I'm having a bit of trouble adding a regression line to each individual plot. Of course, the regression lines will vary depending on the variables plotted against one another. I've attached the script. #

[R] Colour gradients in ggtern

2016-08-02 Thread Jake William Andrae
Hello, This is my first time posting to the r-help mailing list and I'm a relative amateur using R, so forgive my naivety. I am constructing a ternary diagram using the ggtern extension of the ggplot package, and I'm having some trouble with the colour gradient I want it to display. I have atta