similar to: Problem plotting in R under linux (centos)

Displaying 20 results from an estimated 20000 matches similar to: "Problem plotting in R under linux (centos)"

2010 Mar 29
1
single quotes and double quotes in a system() command. What to do?
Hi all, I would like to run the following from within R: awk '{$3=$4="";gsub(" ","");print}' myfile > outfile However, this obviously won't work: system("awk '{$3=$4="";gsub(" ","");print}' myfile > outfile") and this won't either: system("awk '{$3=$4='';gsub('
2011 Jan 21
1
Reading gz compressed csv file - 'incomplete line found'
Hi all, I am trying to download, decompress and read a csv file. My code: myurl <- "ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/series/GSE24729/GSE24729_MitoNuclear_suppl_male_stats.csv.gz" # myfile <- "GSE24729_MitoNuclear_suppl_male_stats.csv.gz" # download.file(myurl, destfile=myfile, mode="w") # mycon <- gzcon(gzfile(myfile,
2007 Aug 11
1
Replace NAs in dataframe: what am I doing wrong
Dear R-users, My script imports a dataset from a csv file, in which missing values are represented by ".". This importation is done into a dataframe using the read.table function with na.strings = "." Then I want to replace the NAs in the first column of the dataframe by "Missing data". I am using the following code to do so :
2010 Dec 13
0
batchfiles 0.6-0
batchfiles is a set of batch, javascript and HTML Application files that are useful for running R and associated programs on Windows. Version 0.6-0 updates them for the new architecture specific directory structure in R 2.12.0 . A few of the lesser used utilities have been dropped. Each batchfile is self contained. To install just place all or just any that you wish to use anywhere on your
2010 Dec 13
0
batchfiles 0.6-0
batchfiles is a set of batch, javascript and HTML Application files that are useful for running R and associated programs on Windows. Version 0.6-0 updates them for the new architecture specific directory structure in R 2.12.0 . A few of the lesser used utilities have been dropped. Each batchfile is self contained. To install just place all or just any that you wish to use anywhere on your
2011 Jul 12
1
suggestions regarding reading in a messy file
I have a file in stata format, which I have read in, and I am trying to create a text file. I have exported the data using various delimiters, but I'm unable to read it back in. I originally read in the file with: library(foreign) myData <- read.dta("mydata.dta") I then exported it with write.table using comma, tab, and exclamation marks as a delimiter. When I was unable to
2016 Apr 23
1
Plotting a large time series
I have a time series with many millions of points. Each point is of the form (time, value) but where the value is 0 there is no record - ie the data set is sparse. If I plot this using plot(myData) I get a correct plot going from time 0 to time 7x10e7. Given that there are many millions of points (it's not *that* sparse), this looks very busy. But if I attempt to plot this as a line -
2017 Nov 15
0
How to read PMML data from a text file and convert it to a model ?
Dear All, I want to save the XML representation of a model using PMML. Then I want to read the model and predict using the model and a new dataset. This is described in this blog post : https://www.r-bloggers.com/predictive-modeling-using-r-and-the-openscoring-engine-a-pmml-approach/ I am able to save the PMML representation of the model. I am not able to read this representation convert it
2007 Apr 26
4
select if + other questions
Hi, i am trying to read a .txt file, do a couple of select if statements on my data, and then finally use the ?table function to get frequency counts on the data. Specifically, i am looking at answering the following question: What is the frequency of Grade 7 students in the province of Alberta who are smokers? I am having some problems: 1)i cannot get the column names to show up when print
2003 May 20
1
R in BATCH mode
Dear all, In R<=1.6.2 I usually used the following code (in DOS prompt) to run R in batch mode C:\documents> Rcmd BATCH myfile.R and I could see the results (including warning messages) in the file myfile.Rout In R.1.7.0 I'm experiencing the followings: (1) even if I type "Rcmd BATCH myfile.R myfile.Rout", no file myfile.Rout is created, but just a "&1" file
2007 Sep 14
2
AGI script fails on IAX channels (from call file).
Hi Guys, I have already tried this one on the developers list. I have not been successful getting much back there and I have notified them that I will post this on the users list instead. Hopefully somebody have tried something similar and can help out. I am developing AGI scripts on Asterisk and have run into some very strange behaviour and I think this is a bug, but I am not completely sure.
2009 Dec 01
0
Dec. 1, 2009 tip of the day
RE: Compression Hi R-Users, You can deal with pretty decent size data sets in R on a relatively new computer. I have one that I have been working with that is a nearly 100MB plain text file. With storage as inexpensive as it is these days that's not really all that much data and I could store it just as it is. Having said that you may want to compress those data files. There are two
2007 Sep 06
1
change all . to 0 in a data.frame
Hello, I read in a tab delimited text file via mydata = read.delim(myfile). The text file was originally an excel file where . was used in place of 0. Now all the columns which should be integers are factors. Any ideas how to change all the . to 0 and factors back to integer? Thanks a lot in advance for any suggestions, -- D --------------------------------- [[alternative HTML
2005 Jun 09
1
getting more than the coefficients
Hi there, I am trying to export a regression output to Latex. I am using the xtable function in the xtable library. Doing myfit <- lm(myformula, mydata) print.xtable(xtable(myfit), file="myfile") only returns the estimated coefficients and the correspondent standard erros, t-statiscs and p-values. But I wish to get a bit more, say, the number of observations used in the
2010 May 16
0
two level fraction factorial design: How to input 'defining relation'?
I am trying to find the important factors from a two level fraction factorial design (2^{8-4}) I have studied the companion of vikneswaran but would really like a basic example of how to do this: (adapted to 8 factors): mydata<-read.table("myfile.txt", header=T) summary(aov(resp ~ A*B*C*D*E*F*G*H, data = mydata)) However i can't figure out how the input files are supposed to
2011 Sep 10
0
npreg: plotting out of sample, extremely large bandwidths
Hello r-help, I am using the excellent np package to conduct a nonparametric kernel regression and am having some trouble plotting the results. I have 2 covariates, x1 and x2, and a continuous outcome variable y. I am conducting a nonparametric regression of y on x1 and x2. The one somewhat unusual feature of these data is that, to be included in the dataset, x1 must be at least as large as x2.
2011 Oct 27
1
plotting large time series
hello, I got a problem with plotting large time series, since I want to store the results in a .PDF file (I want to store several pages of plots). The PDF files get too large to be handled (> 10MB, one was even 200MB big). So I wonder, if there would be a possibilty to either - reduce the file size of the PDF - change the way the plot is generated to reduce the plot size? I use:
2012 Sep 11
1
plotting smoother function on raw data
Hi, I have used the mgcv library to generate a simple additive model. I want to know how to plot the function on the raw data with confidence intervals whan I have TWO variables in the model. I get it to work with one variable but not with two. I am on the limit for what I understand in R, so be gentle. I have read the help file on predict.gam, but did not get any help out of it. #My model:
2008 Nov 25
3
plotting density for truncated distribution
I am using density() to plot a density curves. However, one of my variables is truncated at zero, but has most of its density around zero. I would like to know how to plot this with the density function. The problem is that if I do this the regular way density(), values near zero automatically get a very low value because there are no observed values below zero. Furthermore there is some density
2004 Jul 26
6
directing print.packageInfo to a file
There was a discussion on r-help of getting the output from print.packageInfo into a file. Spencer and I have added a file= argument to print.packageInfo for consideration in R. Had this been available it would have simplified the answer to that thread. If the file= argument is used then the packageInfo information is sent to the file specified rather than displayed using file.show .