similar to: Executing an external executable from within R?

Displaying 20 results from an estimated 50000 matches similar to: "Executing an external executable from within R?"

2009 Aug 04
5
Stacked plots with common x-axis and different y-axis
Is there a place that shows how to create two plots that are stacked on top of each other where they share a common x-axis scale, but have differnt y-axis scale? Say have the following data: airquality Stack plot(airquality$Day, airquality$Wind) on top of plot(airquality$Day, airquality$Temp). I am interested in stacking the two on top of each other with no seam, or plotting the two lines with
2009 Nov 20
6
How to add a top level title to multiple plots
How can I add an overall plot title to these four plots? I would like to have something that says, "Distribution Comparisons": par(mfrow = c(2, 2)) # Plot 1 plot(rnorm(10),type="l",col="red") title(main = list(paste("Normal"), ????????????????????????? col="black", cex = 1.0)) # Plot 2 plot(rpois(10,
2009 Jul 09
4
Issues with file.info?
Are there any tricks associated with file.info? I just tried it on a directory folder and it returned NA for all fields for all files. I tried it on a different folder with different files and it still returned NA. I tried it on a specific file and it returned all the proper info correctly. Just wondering if there are any tricks I've overlooked.
2009 Feb 04
5
Target Plot?
I've done a little snooping around the R Gallery Site (http://addictedtor.free.fr/graphiques/) and the "Statistics with R" site (http://zoonek2.free.fr/UNIX/48_R/all.html), but I can't seem to find what I'm looking for.  Here is the type of plot I would like to draw: (1) 2-D three axis plot where each axis is separated by 120-degrees (would be great if the number of axis
2009 May 26
2
Problem accessing "row number" from subset on a dataframe
I would like to use the "row number" information returned from performing a subset command on a dataframe. For example, I would like to automatically delete some rows from a dataframe if they match a criteria. Here is my example below. data(airquality) names(airquality) subset(airquality, airquality$Month == 6) Now how do I delete the row numbers returned automatically? I
2009 Oct 08
1
R user defined language file for NotePad++
I am a big fan of NotePad++ (http://notepad-plus.sourceforge.net/uk/site.htm), which allows users to develop an XML schema that allows NotePad++ to be more Language aware. Thus, I'm curious if there are any R users out there that may have developed the XML user defined language for NotePad++. Just curious if there is already one out there. Thanks again for any feedback.
2010 May 12
2
Whiskers on the default boxplot {graphics}
How are the lower/upper whiskers defined in the default version of boxplot {graphics}? I tried help(boxplot) and searching www.rseek.org, but I was unable to determine an absolute answer. I checked out the definition of boxplot according to Wikipedia (http://en.wikipedia.org/wiki/Box_plot), but it also had several approaches listed for how the whiskers could be determined, so I'm just
2009 Feb 12
3
Website, book, paper, etc. that shows example plots of distributions?
By any chance is any one aware of a website, book, paper, etc. or combinations of those sources that show plots of different distributions? After reading a pretty good whitepaper I became aware of the benefit of I the benefit of doing Q-Q plots and histograms to help assess a distribution.   The whitepaper is called: "Univariate Analysis and Normality Test Using SAS, Stata, and SPSS*" ,
2009 Sep 25
2
grep or other complex string matching approach to capture necessary information...
Say I have the following data: house_number<-floor(runif(100, 200, 600)) water_evaluation<-c("No water damage", "Water damage", "Water On", "Water off", "water pipes damaged", "leaking water") water_evaluation_selection<-floor(runif(100, 1,6)) house_info<-data.frame(water_evaluation[water_evaluation_selection],
2009 Aug 01
1
R Package That Contains International Geomagnetic Reference Field (IGRF)
By any chance is anyone aware of an R package that contains a representation of the International Geomagnetic Reference Field (IGRF)? http://www.ngdc.noaa.gov/IAGA/vmod/igrf.html I've tracked down some Fortran and C code for the IGRF-10, and possibly IGRF-11, and was hoping to avoid an awkward port. Thanks again for any feedback and leads provided.
2010 Jan 07
2
Debugging issues encountered during the "R CMD check" process
I read through the "Writing R Extensions" and the "Debugging in R" website (http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/), looking for some hints about how to solve the issue of debugging problems encountered during the "R CMD check" process, but nothing seems to be mentioned about addressing issues encountered. Specifically, I am working with the R
2009 Dec 01
1
Aligning Diagonally Oriented Labels Under Bar Chart
I searched the forms (i.e., R Search)?and come up with the following suggested link: ?http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f I tried to implement what I believe was being implied by that URL and came up with the below: barplot(WorldPhones[1,], ??????? ylim=c(0, 50000), ??????? axes=FALSE, ann=FALSE, ???????
2009 Mar 23
3
Replacing a few variable values within a DataFrame...
I would like to replace a few varaibles within a data frame. For example, in the dataframe below (contrived) I would like to replace the current housesize value only if the Location is HSV. However, I would like to leave the other values intact. I tried "ifelse", but I don't really need the else condition. test_data2_df<-data.frame(Variables=c("SQR
2009 Jun 06
6
Journal Articles that Have Used R
Is there a way to get a reference list of journal articles that have used R? I am just looking for some examples of R graphs and presentation of results where R was used to generate the results. Thanks for any feedback and insights.
2009 Jun 26
3
Automatically placing a legend in an area with the most white space...
At one point I believe I heard of an R package that would automatically find the most empty space in a plot, and then that answer could then be used to intelligently place a legend. I would like to try to apply that R package to the contrived example shown below, so thank you for any hints or tips that can be provided. x = seq(0, 1000, by = 1) y1_vals<-rnorm(1000, mean = 0, sd = 50)
2009 Jul 16
6
Best way to replace :SS with :00
Not sure if there is an R way to do this or a regular express way, but here is what I am trying to do. I've got lots of data where the format is HH:MM:SS, but I need to format it like HH:MM:00, i.e. round the second down to zero. What is the best way to do this? Thanks again. Jason
2009 Jan 03
2
R Stacked Histogram
I've seen this asked, but never fully answered.  Is it possible to plot stacked histograms in R? I have four data sets that I would like to show combined vertically in histogram format.  Is this possible?  Thank you for any feedback you can provide. P.S. I know I can show the four sets side by side, but I want to combine them, but still uniquely identify each.   Thanks again.
2009 Oct 19
2
Using grep to determine value of last letter...
I am currently being defeated by grep. I am attempting to determine the value of the last letter of a character string. An example of my data set is shown below. Regarding the codes, I would like to identify the value of the last character and then take the appropriate action, e.g. If the value is L then label UL rating XXX It the value is F then label UL rating YYY ... I assume it will be
2009 Mar 24
2
Properly labeling abline with text?
The result of the code shown below is posted at the following URL: http://n2.nabble.com/Trying-to-properly-label-abline-td2524629.html I would like to figure out a better way to label the horizontal abline. I tried multiplying the text y position by a scale, but this didn't always put the text in a useful position. I guess I am curious if there is a preferred procedure for labeling the
2009 Jun 04
3
Understanding R Hist() Results...
Think I'm missing something to understand what is going on with hist(...) http://n2.nabble.com/What-is-going-on-with-Histogram-Plots-td3022645.html For my example I count 7 unique years, however, on the histogram there only 6. It looks like the bin to the left of the tic mark on the x-axis represents the number of entries for that year, i.e. Frequency. I guess it looks like the bin for