Displaying 20 results from an estimated 10000 matches similar to: "Mode (statistics) in R?"
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 Jan 27
2
working with tables -- was Re: Mode (statistics) in R?
Ok, so I'm slowly figuring out what a factor is, and was able to follow
the related thread about finding a mode by using constructs like
my_mode = as.numeric(names(table(x))[which.max(table(x))])
Now, suppose I want to keep looking for other modes? For example,
Rgames> sample(seq(1,10),50,replace=TRUE)->bag
Rgames> bag
[1] 2 8 8 10 7 3 2 9 8 3 8 9 6 6 10 10 7 1
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 Jan 22
2
Is it possible for R to import a SigmaPlot file?
I recently received a Sigmaplot file (*.jnb) from a customer and would like to know if I can input it to a data frame and then manipulate the data in R.
I did a search on Google and on RSeek (www.rseek.org), but did not get any good hits. Thank for any feedback and insight you can provide.
P.S. Love the flexibility of R and would love to keep using it. Just wanting to know if this is
2009 Jul 09
5
Best way to export values from a function?
Maybe there is a great website out there or white paper that discusses this but again my Google skills (or lack there of) let me down.
I would like to know the best way to export several doubles from a function, where the doubles are not an array.
Here is a contrived function similar to my needs:
multipleoutput<-function(x)
{
squared<-x^2
cubed<-x^3
exponentioal<-exp(x)
2010 Nov 21
1
Alternatives to image(...) and filled.contour(...) for 2-D filled Plots
By any chance are there any alternatives to image(...) and filled.contour(...)
I used Rseek to search for that very topic, but didn't turn over any leads...
http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4&newwindow=1&q=alternative+to+image+and+filled.contour&sa=Search&cof=FORID%3A11&siteurl=www.rseek.org%252F#1238
I'm sure there are some out there, but
2009 Jan 27
1
3-axis Barplots (plus qplot like staked histogram capability)
Searched my R reference docs*, and the Rseek, but evidently I've overlooked this capabilty.
Is it possible to produce a 3d Barplot using R?
For example would like to have a three axis bar plot - \
x-axis = location(discrete),
y-axis = data value,
z-axis = frequency of value occurance (of location and value)
Would also if could also do something like what "qplot" allows,
2009 Mar 04
1
Package for determining correlation for mixed "Level of Measurement"
My data set has a mixed level of measurement:
Nominal scale - location (city)
Ordinal scale - temperature (low, medium, high)
Interval scale - age & value
Just curious if there is an R package available that will handle the mixed "Level of Measurement".
Looking to do graphical presentation of the correlation and also a qualitative analysis of the correlation.
Thanks again for
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 Feb 10
2
Mixed ANCOVA with between-Ss covariate?
Hi all,
I have data from an experiment with 3 independent variables, 2 are
within and 1 is between. In addition to the dependent variable, I have
a covariate that is a single measure per subject. Below I provide an
example generated data set and my approach to implementing the ANCOVA.
However the output confuses me; why does the covariate only appear in
the first strata? Presumably it should
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 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 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 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 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.
2011 Nov 23
2
Suggested alternative to rgdal for Mac for making bubble plots with R 2.14?
I'm new to making bubble plots with R, so I was going to try the following:
https://stat.ethz.ch/pipermail/r-sig-geo/2009-August/006258.html
Unfortunately, it looks like rgdal is not part of 2.14. I'm not sure if it was the mirror I selected or something else is going on.
> install.packages("rgdal")
--- Please select a CRAN mirror for use in this session ---
Warning
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
2017 Nov 09
2
Calculating frequencies of multiple values in 200 colomns
Always reply to the list. I am not a free, private consultant!
"For example, if I have the values : 1 , 2 , 3 in each column, applying
Tabulate () would calculate the frequency of 1 and 2 without 3"
Huh??
> x <- sample(1:3,10,TRUE)
> x
[1] 1 3 1 1 1 3 2 3 2 1
> tabulate(x)
[1] 5 2 3
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people
2009 Jan 29
2
Adding vertical line to histogram and qplot "stacked" plot
R-users it appears I am leaning on your knowledge once again. Is there any way to add a vertical line to a histogram and qplot "stacked" plot? Here is my current attempt:
"qplot" approach attempt:
qplot(Run, data = data_dataframe, breaks = breaks, fill = Temperature, main = short_title) + scale_x_continuous("Data") + scale_y_continuous("Freq")
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,
???????