That you want to do this is fascinating. Since you are so intent on doing this
I am sure you have already Googled "R plot several lines" and used the examples
you found to help make your plots by now. Do keep in mind that there are three
common but distinctly different graphing systems available
I want to plot a straight line where y=m*x+1 (where x varying from -5
to +5) and and m will change from 0.5 to 5. All the straight lines
needs to be overlaid.
Thanks
Parth
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.
Here is how I processed the files you sent. I used XLConnect to access
EXCEL.
> require(XLConnect)
> # I happen to use XLConnect for accessing EXCEL
> miRNA <- readWorksheetFromFile("/temp/miRNA.xls", 1) # read in the
spreadsheets
> genes <- readWorksheetFromFile("/temp/gene.xls", 1)
> str(miRNA
I want to extract each of the logical expressions of
generateRandomNKNetwork function and evaluate each expression as follows:
h[[1]]<-function (x) {(!x[3] & x[1]) | (x[3] & !x[1])}
h[[1]](c(data[,1]))
[1] TRUE
h[[1]](c(data[,2]))
[1] TRUE
I applied a wrapper function to pass the
Thanks very much everybody - I think i've got it now!
On 15 March 2015 at 23:58, John Kane wrote:
> Oops missed the links. Once more...
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
> http://x
Sorry for that. It's Ubuntu 14.04. I would like to avoid a temporary file
altogether, but if there is not other way...
Thanks,
Luiz
On 15 March 2015 at 20:14, Jeff Newmiller wrote:
> You don't say which operating system you are using, but this sounds like
> it could easily be affected by your
This is nonsense. Please provide a reproducible example.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Li
Hi all,
It looks like the limits for x axis for box function in R is from -1 to
1. How can I change this limit?
Thanks for your help.
Hanna
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and
I can't reproduce the problem with your code. I just get an error because
cbbPalette is not available. Omitting the scale_colour_manual() form your
code give a sensible plot.
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwa
You don't say which operating system you are using, but this sounds like it
could easily be affected by your OS (even of in this case it isn't). My
suggestion would be to use a temporary file.
---
Jeff Newmiller
David, and also William Dunlap, thanks for taking the time to reply, with
examples. Both your answers are very helpful.
William noted that 'reshape2' is not 'R', but a user-contributed package
that runs in R. I agree, and I'm not confusing one with the other. But
what I don't like is that some
I believe that you are in Circle 1 of The R Inferno.
http://www.burns-stat.com/documents/books/the-r-inferno/
Pat
On 15/03/2015 11:04, Jeremy Clark wrote:
Dear All,
The following gives a very unpleasant experience with apparently random NAs
- probably it's my bad formatting of the coding - b
All,
I am doing something wrong but I don't see what. When I plot in ggplot all the
lines are on top of one another but the data is not. Any help is appreciated.
Thanks,
Glenn
# I use this function to generate data
Burnout <- function(beta1 = numeric(),
beta
Hey all,
I'm developing an application that calls third party software using
system2(..., stdout = TRUE) and then reads this using textConnection() +
read.csv ().
Problem is that sometimes the output is bigger than 8096 bytes and then the
lines are split (from system2 documentation), what messe
Dear Jeremy
The NAs do not seem random to me as the gaps between successive NAs are
either 3, 8 or 11.
Have you considered the possibility that the finite precision of real
numbers in computers may be the issue here?
On 15/03/2015 11:04, Jeremy Clark wrote:
Dear All,
The following gives
This list is a plain text list. Posting in HTML frequently leads to corrupted
code on the receiving end. Be sure to read the Posting Guide.
In no programming language is it a good idea to assume equality with floating
point values. See FAQ 7.31. In cases like this use integers to create sequence
Hi Jim,
thank you very much for the code.
Marek
On Sun, Mar 15, 2015 at 11:46 AM, Jim Lemon wrote:
> Hi mareki,
> The transformation is not too difficult, but the table format in your
> example will cause a bit of difficulty. The following function from the
> plotrix package:
>
> categoryResh
Dear All,
The following gives a very unpleasant experience with apparently random NAs
- probably it's my bad formatting of the coding - but the effect is
unexpected and if undetected can lead to considerable problems:
myvector1 = NULL
myvector3 = NULL
myvector4 = NULL
myvector5 = NULL
myve
Oops missed the links. Once more...
https://github.com/hadley/devtools/wiki/Reproducibility
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
http://xkcd.com/1478/
John Kane
Kingston ON Canada
> -Original Message-
> From: jrkrid...@inbox.com
> Sent:
https://github.com/hadley/devtools/wiki/Reproducibility
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
http://xkcd.com/1478/
John Kane
Kingston ON Canada
> -Original Message-
> From: mare...@lutonsky.net
> Sent: Sat, 14 Mar 2015 15:02:55 -0700 (PD
As a follow up to Thierry's response.
With data as dat1
dat1 <- structure(list(id = 1:12, weight = c(453L, 527L, 520L, 460L,
496L, 461L, 519L, 472L, 531L, 473L, 509L, 503L), breed = c("brahman",
"brahman", "brahman", "brahman", "durham", "durham", "durham",
"durham", "durham", "durham", "dur
On Sun, 15 Mar 2015, Lyle Warren wrote:
I have data with columns for animal ID, breed, and weight.
I'd like to create a box plot of weight, separated by breed (there are 4
breeds).
Any ideas?
1. Did you check the help page: ?boxplot
Here's a sample of the data (there are 100 rows):
id
Hello,
Try, if your data.frame is named 'animal',
boxplot(weight ~ breed, data = animal)
Hope this helps,
Rui Barradas
Em 15-03-2015 03:50, Lyle Warren escreveu:
I have data with columns for animal ID, breed, and weight.
I'd like to create a box plot of weight, separated by breed (there a
Dear all,
I am trying to set a model using the pcrfit() function of the qpcR
package. I have defined a dataframe with 45 cycles (rows) and 4
readings (columns) derived from a TaqMan qPCR with relative
quantification. The data is based on the normalized fluorescent
results (main fluorescence minus R
Hi mareki,
The transformation is not too difficult, but the table format in your
example will cause a bit of difficulty. The following function from the
plotrix package:
categoryReshape<-function(x) {
dimx<-dim(x)
if(is.null(dimx) || dimx[2]==1)
stop("Can only reshape a matrix or data frame wi
> On 14-03-2015, at 18:28, Nicolae Doban wrote:
>
> Hello,
>
> my name is Nick and I'm working on a project. I'm having trouble with
> building a simple for-loop. In this loop I want to read csv files, perform
> a corr function and save it to a pdf file. I tried to solve this problem by
> looki
Hi Nick,
Your code is not exactly "commented, minimal, self-contained, reproducible" and
contains a number of inconsistencies (Data has three elements, your loop
expects six). Try something like
Data <- c("July", "August", "September")
...
for( x in Data )
{
currentData <- read.csv( pa
Pay attention to the i counter in the loop: it runs from 1 to 6 but data
has only 3 elements
Il 15/mar/2015 04:56 "Nicolae Doban" ha scritto:
> Hello,
>
> my name is Nick and I'm working on a project. I'm having trouble with
> building a simple for-loop. In this loop I want to read csv files, pe
Have a look at http://docs.ggplot2.org/current/geom_boxplot.html
You will find several examples there.
Best regards
Op 15-mrt.-2015 04:59 schreef "Lyle Warren" :
> >
> >
> > I have data with columns for animal ID, breed, and weight.
> >
> > I'd like to create a box plot of weight, separated by b
29 matches
Mail list logo