similar to: Changing x-axis values displayed on histogram

Displaying 20 results from an estimated 2000 matches similar to: "Changing x-axis values displayed on histogram"

2010 Feb 02
2
Error with write.table
I was trying to save a data frame to an excel file using the following command: write.table(myData, file="myData.csv",sep=",", row.names=F) The command works for some data frames, but for other data frames, I get the following error: Error in if (inherits(X[[j]], "data.frame") && ncol(xj) > 1L) X[[j]] <- as.matrix(X[[j]]) : missing value where
2010 Nov 01
3
Mean and individual growth curve trajectories
I'm trying to understand how to plot individual growth curve trajectories, with the overall mean trajectory superimposed (preferably in a slightly thicker line, maybe in black) over the individual trajectories. Using the sleepstudy data in lme4, here is the code I have so far: library(lme4) library(lattice) xyplot(Reaction ~ Days, data = sleepstudy, group = Subject, type = 'l')
2009 May 02
1
Trouble installing packages on Macintosh OS-X 10.5.6
I just upgraded my version of R from 2.8.1 to 2.9.0. After doing so, I now have problems using the package installer to reinstall all my packages. Some download and install without problems, but for others, I get the spinning pinwheel and after even 10 minutes, nothing is downloaded. R stops responding. At first, I had not deleted the old version of 2.8.1 before installing 2.9.0. However, I
2009 Aug 21
8
Selecting groups with R
I have a data set similar to the following: Color Score RED 10 RED 13 RED 12 WHITE 22 WHITE 27 WHITE 25 BLUE 18 BLUE 17 BLUE 16 and I am trying to to select just the values of Color that are equal to RED or WHITE, excluding the BLUE. I've tried the following: myComp1<-subset(dataset, Color =="RED" | Color == "WHITE")
2010 Jul 17
1
Help with Reshaping from Wide to Long
I am trying to reshape data that are in the wide format into the long format. The design is a repeated-measures design, which combined 3 levels of shape (circle, square, triangle) with 3 levels of color (Blue, Red, Green), for a total of 9 variables. The wide data look like this (sorry I couldn't get the columns to line up quite right: Subject CircleBlue CircleRed CircleGreen SquareBlue
2008 Aug 19
1
Histogram binning
I am trying to produce frequencies in defined intervals however I can't seem to figure out how to get R to bin my data the way I want it to. I have several thousand lengths of fish that I want to be binned as follows: Ex. Length Bin 209 200 219 210 431 430 727 720 That is, bins with any length equal to or greater than the lower
2000 Nov 21
4
Session logging in Windows98?
I'd like to log all console I/O for an entire session while maintaining normal console I/O. I'm working in Windows98, RGui, R1.1.1. The sink() function is not the answer since it diverts output from the console. In the RFAQ I see references to "...save the contents of the interaction buffer to a file..." and in the R-Help Archive "...just save the console output...". I
2003 Oct 28
1
stacking histograms
Hi, I have a set of observations which are divided into two sets A and B. I have some code that bins the dataset into 10 bins based on the max and min of the observed values. I would like to make a histogram of A & B using my calculated bins but plot the distribution of B on top of A (like a stacked barplot). This is possible since both sets A & B are binned using the same bin ranges.
2010 Jun 18
4
Root mean square on binned GAM results
Hi, Standard correlations (Pearson's, Spearman's, Kendall's Tau) do not accurately reflect how closely the model (GAM) fits the data. I was told that the accuracy of the correlation can be improved using a root mean square deviation (RMSD) calculation on binned data. For example, let 'o' be the real, observed data and 'm' be the model data. I believe I can calculate
2012 Mar 14
1
How to use ggplot to do the binned quantile plots(one type of scatter plot)?
How to use ggplot to do the binned quantile plots(one type of scatter plot)? Hi all, I have done scatter plot: plot(x, y). Now I wanted to do binned quantile plots... can ggplot2 help me? For example, we bin x data into 10 bins. For each bin, we draw the 10 deciles of the corresponding y data in that bin as points/dots. And then accross all bins, we would like to connect the corresponding
2006 Jun 12
2
Fitting Distributions Directly From a Histogram
Dear All, A simple question: packages like fitdistr should be ideal to analyze samples of data taken from a univariate distribution, but what if rather than the raw data of the observations you are given directly and only a histogram? I was thinking about generating artificially a set of data corresponding to the counts binned in the histogram, but this sounds too cumbersome. Another question is
2007 Jul 20
3
binned column in a data.frame
Dear all, I would like to know how can I create a binned column in a data.frame. The output that I would like is something like this: Start Binned_Start 1 0-5 2 0-5 6 5-10 8 5-10 13 10-15 ... Best regards João Fadista Ph.d. student UNIVERSITY OF AARHUS Faculty of Agricultural Sciences Dept. of Genetics and Biotechnology Blichers
2012 Oct 03
3
Fastest non-overlapping binning mean function out there?
Hi, I'm looking for a super-duper fast mean/sum binning implementation available in R, and before implementing z = binnedMeans(x y) in native code myself, does any one know of an existing function/package for this? I'm sure it already exists. So, given data (x,y) and B bins bx[1] < bx[2] < ... < bx[B] < bx[B+1], I'd like to calculate the binned means (or sums)
2008 Jun 18
5
Problem in Binning of a data set
Hello, I am having problem with binning the data. I have a 50X3 matrix and I binned the data for all the 3 columns. Using table command I got the total no. of elements in a particular bin. Could you please tell me how to see that what all elements are there in a particular bin and then create a different matrix for each bin? Thanks. Regards, Sumit [[alternative HTML version deleted]]
2009 Nov 13
2
data frame subsets?
Hello, I am trying to create data frame subsets based on binned temperature data. I have code working to create the bins (d.1 and d.2), but it takes two steps, I was wondering if I could merge into one step. See Below d n year mo da hr t td tw rh kPa 1 1 1945 3 1 0 1.1 0.0 0.6 92 101.7 2 2 1945 3 1 1 2.8 -1.1 1.1 76 101.8 3 3 1945 3 1 2 2.2 -1.7 0.6 75 101.9 4 4
2007 Sep 10
3
link_to file
Hi, This is probably the stupidest question that I''m ever going to ask, but how do I create a link to a file? To be more clear, I simply want to create a link to a file that I am storing in the /public directory, say file.pdf. So, I upload the file to /public/ and then I would like to be able to do something like, link_to( image_tag(''image.jpg''),
2006 Feb 17
1
How to change the number of bins in "hist" function?
Hi all, I am doing histogram using the "hist" function. For some reason, the histogram does not look good... is there a way I can change the number of bins, and/or change the way that data gets binned... so that I can obtain a better looking histogram? Thanks a lot! [[alternative HTML version deleted]]
2006 Oct 25
4
Flash messages stay up too long
I run a check on the address line parameters to make sure the user isn''t passing my list method a :year to search for that does not exist in the database, which would create null pointer exceptions. I then splash a flash message telling the user that the year doesn''t exist in the database. Then, if the user enters another year into the command line as an argument for the
2011 Dec 05
1
Binning the data based on a value
Hello there, I have a matrix with some data and I want to split this matrix based on the values in one column. Is there a quick way of doing this? I have looked at cut but I am not sure how to exactly use it? for example: I would like to split the matrix "a" based on the spending such that the data is binned groups [0..99],[100..199]...and so on. a <- data.frame(patient=1:7,
2012 Jul 05
3
Histogram
I have a column of 1000 datapoints from the normal distribution with mean 2 and variance 4. How can I get a histogram of these observations with 20 bins with each bin having 50 observations? -- Thanks, Jim. [[alternative HTML version deleted]]