[R] Force printing of excluded axis annotations

2012-02-08 Thread Justin Fincher
Howdy, This should be simple, but I am finding that I can't find a simple solution. I have a plot to which I am manually adding the annotations to the y-axis with this command: axis(2, c(-4,-3,-2,-1,0,1,2,3,4,5,6,7),labels=c(-4,-3,-2,-1,0,1,2,3,4,5,6,7),cex.axis=8) The issue is that, apparen

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread Justin Fincher
mething other than the URL"? > > I feel the tikzDevice package should be an option for the task. > > Regards, > Yihui > -- > Yihui Xie > Phone: 515-294-2465 Web: http://yihui.name > Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA &

[R] adding hyperlinked text to pdf plot

2011-12-05 Thread Justin Fincher
Howdy, I have read that if you put a URL in the text of a plot being saved into pdf, the result is a functional hyperlink. I am interested in having text in a plot that is linked to a URL, but I would like the text to be something other than the URL. Is this possible? Thank you. - Fincher

Re: [R] Creating a simple 1-row heatmap

2011-08-08 Thread Justin Fincher
s/ labels/ etc as normal: > > image(as.matrix(n),col=g,xaxt="n",yaxt="n",main="Very Important Data") > > If you adjust the aspect ratio, you can get your desired bar shape/size. > > Michael Weylandt > > On Mon, Aug 8, 2011 at 5:10 PM, Justin Finch

[R] Creating a simple 1-row heatmap

2011-08-08 Thread Justin Fincher
Howdy, I am trying to make a simple monochrome heatmap from 1 row of data. Essentially, I just want a long bar where black represents the max value in the data, white is the minimum, and all values in between are interpolated appropriately. I have tried using heatmap and heatmap.2, but both ha

Re: [R] inconsistency with cor() - "x must be numeric"

2010-12-13 Thread Justin Fincher
only works on numeric arguments now (as of R 2.11 or 2.10 if > memory serves). So, I would update your function to ensure that you > are only passing numeric data to cor() and the error should go away > (it will probably be easier on you if you can update your version of R > to the lat

[R] inconsistency with cor() - "x must be numeric"

2010-12-13 Thread Justin Fincher
Howdy, I have written a small function to generate a simple plot and my colleague is having an error when attempting to run it. Essentially I loop through categories in a data frame and take the average value for each category The categories are in $V1, subset first then mean taken and concaten

[R] Issue increasing DPI on a png output of a plot

2010-09-27 Thread Justin Fincher
Howdy, I have created a set of plots, but I wish to increase the dpi to 300 (instead of the default 72). From the documentation, I thought that the "res" parameter to png should accomplish this, but it appears to greatly alter the appearance of my plot. (plot area becomes smaller, plot lines bec

[R] Issue increasing DPI on a png output of a plot

2010-09-27 Thread Justin Fincher
Howdy, I have created a set of plots, but I wish to increase the dpi to 300 (instead of the default 72). From the documentation, I thought that the "res" parameter to png should accomplish this, but it appears to greatly alter the appearance of my plot. (plot area becomes smaller, plot lines bec

[R] plotting lines when data has missing/NA values

2010-07-08 Thread Justin Fincher
Howdy, I have done many searches and can't seem to find a way around this. I am reading in a .csv file where each row is a dataset and each column represents a position. The values are sparse (there are 2003 positions but usually only 100-200 values) and the idea is to be able to plot each dat

Re: [R] finding the plot limits generated by default

2010-05-14 Thread Justin Fincher
the second call to plot() should fix the x axis range > at the exact values passed for 'xlim'. > > > HTH, > > Marc > > > On May 14, 2010, at 11:09 AM, Justin Fincher wrote: > > > Thank you for your reply, but I have additional questions. I agree that

Re: [R] finding the plot limits generated by default

2010-05-14 Thread Justin Fincher
er after the second plot has been drawn and it is very different. Should par("usr")[1] not be exactly the same the second time I display it as I passed it as the minimum for the second plot? Any help would be appreciated. - Fincher On Fri, May 14, 2010 at 11:45, Marc Schwartz wrote:

[R] finding the plot limits generated by default

2010-05-14 Thread Justin Fincher
I have two datasets that I would like to plot in a single figure. The first plot is generated by a function that then takes a subset of the data. (It is biological data so it is usually by chromosome e.g. function(data1,subset="chr8") ) Since not only are the chromosomes different sizes, but acro