Displaying 20 results from an estimated 10000 matches similar to: "delete active dataset"
2012 Jul 02
5
ggplot: dodge positions
Dear all,
I want to get a series of boxplots (grouped by two factors) and I want to overlay the original observations and the following code does almost what I want:
library(ggplot)
ddf <- data.frame(x=factor(rep(LETTERS[1:4], each=30)), y = runif(120,0,10), grp = factor(rep(rep(1:3, 10), 4)))
ggplot(ddf, aes(x, y, colour=grp)) + geom_boxplot() + geom_point()
Yet the position of the points
2012 Jun 12
6
Attempting to update from R 2.14 to 2.15
I am very new to Linux so I probably am doing something stupid but I cannot seem to update to R 2.15
Using Ubuntu 12.02 Precise Penguin
I realise that debian packages are not updated regularly so I tried to follow the insructions at the R-site
So far, I have modified /etc/apt/sources.list to read
## R CRAN added 2012-06-12
deb http://probability.ca/cran/bin/linux/debian squeeze-cran/
Issued
2013 Apr 03
7
Canadian politcal party colours in ggplot2
A stupid question but does anyone know how to express the actual colours used by the main Canadian political parties? I want to do a couple of ggplot2 plots and have lines or rectangles that accurately reflect the party colours.
I can probably play around with RColorBrewer or something to figure it out but if some some already has got them it would save me some time especially with the NDP
2012 May 03
5
Identifying the particular X or Y in a sorted list
Dear All,
I have a data sets as shown below A (Patient ID ), B and C are the
Concentration of drug in blood on day 1 and day 4, D is the difference in
conc. To do this in R I have written a code as follows, identified the
number of patients who have more concentration on day 4 . Here I want to
identify specifically the patient ID (is he patient 1 or 2 or 5 and 7),
whose concentration is more.
How
2013 Mar 22
4
ggplot2 will not draw a rectangle. Error: ggplot2 doesn't know how to deal with data of class XXX"
What am I missing? When I run the code below I get the error message
"Error: ggplot2 doesn't know how to deal with data of class function"
Googling suggests a message of "Error: ggplot2 doesn't know how to deal with data of class XXX" is not uncommon but I don't see why I am getting a "function" error unless I am using some reserved word?
2013 Mar 08
4
create bar chart with different totals in a bar
Hello together,
perhabs anyone of you, has an ideal, how i can do this:
I have a matrix, like this one:
[,1] [,2] [,3]
[,4]
abnr2 11425 11425 11555 11888
TIME 2 1 1 2
Cat 1 2 1
2013 Apr 26
3
csv file with two header rows
Is there a way to use read.csv() on such a file without deleting one
of the header rows?
Thanks.
2012 Jun 26
3
plotting two histograms on one plot with hist function
I would like to plot two data sets (frequency (y-axis) of mean values for 0-1(x=axis)) on a single histogram for comparison. The hist() only allow the overlay of two histograms, and although barplot() allows beside=TRUE, it does not show frequency values (like hist) but rather all of the values. Is there any way that I can use the hist() to plot two data sets similar to the barplot(). Any help or
2012 Sep 12
2
help server slow
suddenly a few days ago it takes about a minute for local help to come up .
i type :
?hist
and get
starting httpd help server ... done
but only after a minute does
http://127.0.0.1:15686/library/graphics/html/hist.html
appear .
Lee De Cola, PhD, MCP.
DATA to Insight
LDECOLA@COMCAST.NET
Reston, Virginia
703 709 6972
571 315 0577 mobile
[[alternative HTML version deleted]]
2012 Jul 07
11
Splitting a character vector.
I am lousy at simple regex and I have not found a solution to a simple problem.
I have a vector with some character values that I want to split.
Sample data
dd1 <- c( "XXY (mat harry)","XXY (jim bob)", "CAMP (joe blow)", "ALP (max jack)")
Desired result
dd2 <- data.frame( xx = c("XXY", "XXY", "CAMP",
2012 Jul 13
2
alternate tick labels and tick marks with lattice xyplot
Hi,
I would like to use xyplot to create a figure. Unfortunately, I cannot find
documentation in xyplot to specify alternating the x-axis tick labels with
the x-axis tick marks. I can do this with the regular R plot function as
follows.
#A small version of my data looks like this
data<-data.frame(matrix(ncol=3,nrow=12))
data[,1]<-rep(c(1,2,3),c(4,4,4))
data[,2]<-rep(c(1,2,3,4),3)
2013 Mar 26
6
How do I show real values on a log10 histogram
Hi,
I have a histogram with values logged to the base 10
hist(log10(x),breaks=60)
How do I show the log values on the x-axis and a second x-axis showing the
real values?
Thanks
--
Shane
[[alternative HTML version deleted]]
2013 Sep 24
1
request for help in R
respectd sir,
i am working on regional frequency analysis of flood flow data and want to use packages lmomRFA, lmom, imomco,etc andby using these i want to find RMSE , errorbounds and absolute biase but could not make it clear to use, please help
regards
atta muhammad asif
assistant professor
atta_ycc@yahoo.com
[[alternative HTML version deleted]]
2013 Oct 30
1
ggplot2 - how to get rid of bar boarder lines
Hello!
I am using ggplot2:
ggplot(myplotdata, aes(x=att_levels, y=WTP)) +
geom_bar(stat="identity",fill="dark orange",colour="black",
alpha = 1,position = "identity") +
geom_text(aes(label=WTP),colour="black",size=4,hjust=1.1,position='dodge') +
coord_flip() +
xlab("") +
2012 Jun 06
2
ggplot2: legend for geom_rug() ..?
Hi,
I was trying to make another legend for the rug plot. Sample code:
library(ggplo2)
ids <- paste('id_',1:3,sep='')
before <- sample(9)
after <- sample(1:10,9)
dat <- as.matrix(cbind(before,after))
rownames(dat) <- rep(ids,3)
position <- c(rep(10,3),rep(13,3),rep(19,3))
mdat <- cbind(melt(dat),position)
ggplot(mdat, aes(position, value)) +
2012 Aug 09
4
R Commander - Time Series
Hello all,
I'm just starting to learn R and I heard a good way of doing that was R
Commander. For my work I use a lot of time series, so I installed (and
loaded) R Commander with epack.
When I go to Ts-Models, after loading my data, I click on ARIMA Models tab.
I load my variable D1 Ln Demand (1st differenced ln demand). I set my
regular and seasonal p d q settings hit run and I get:
[1]
2012 Sep 26
2
Retrieve regression summary results after rq
Hi all,
I am using quantile regression with svy design. I want to retrieve
summary regression statistics (std error, p-value), since I don't have
any in my output:
Commands:
clus1_d<- svydesign(id=~cd002_co, weights=~wtper, strata=~str, data=data)
bclus1<-as.svrepdesign(clus1_d,type="bootstrap",replicates=100)
fit1<-
2012 Nov 09
9
lm function - strange error
I am following a document teaching how to use regression and right at the
onset I get an R error. I understand that variables "conc" and "signal"
should have the same length but I am using the what R manual suggests to
drop the error and it is not cooperating. What gives? The manual says
that the default is na.ombit by the way, not that it's addition does
anything
How
2012 Oct 01
3
(no subject)
Hello,
I am a new R -user and request your help for the following problem.
I need to merge two dataset of longitudinal study which has two column
(id and respose) common. when I used merge option to join the datas
side be side, because of the repeated subject id, I got larger data
set which is not accurate.
I would like to connect twi data sets by id and response in such a
way that data are
2013 Mar 15
3
reviewer comment
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20130315/7300f19c/attachment.pl>