search for: antje

Displaying 20 results from an estimated 88 matches for "antje".

2006 Jan 09
3
two y-axis in xy-plot
Hi there, I am wondering if it is possible to do an xyplot with two y-axes. I'd like to print two parameters in a time series but they both have different scales. Which parameter in xyplot can I add to achieve this result? Thanks a lot for any help. Antje [[alternative HTML version deleted]]
2008 Dec 16
6
Find all numbers in a certain interval
...# would give me all indices of numbers greater than -0.5 and smaller than +0.5 I have something similar with a dataframe and it produces sometimes quite long commands... I'd like to have something like: which(within.interval(a, -0.5, 0.5)) Is there anything I could use for this purpose? Antje
2011 Feb 11
2
fitdistr question
...ization of this parameter to gain a good fit... If I would use mle() of stats4 package or mle2() of bbmle package, I would have to write the function by myself which should be optimized. But what shall I return? -sum((y_observed - y_fitted)^2) ? Any other suggestions or comments on my solution? Antje
2006 Nov 01
4
extract values from a vector
...;butter") V2 <- c("bread","milk") now, I would like to know for each element in V1 if it's equal to one of the elements in V2 I could do: which(V1 == V2[1] | V1 == V2[2]) but what if I don't know the length of V2 and it's content??? Thank you in advance! Antje
2009 Jan 20
5
from matrix to data.frame
...like. Now, I'd like to reshape the data that I get a data frame with three columns: - the row name of the enty (X1) - the column name of the entry (X2) - the entry itself (X3) like: X1 X2 X3 1 A 1 2 A 2 3 A 3 .... 1 B 6 2 B 7 .... 5 E 25 How would you solve this problem in an elegant way? Antje
2009 Sep 28
2
Levelplot without margins
Hello, I'm not very experienced with lattice and I was wondering whether I get get some hints from you how to create a pure heatmap (using levelplot), without any axis, title, legend, margin at all... I just want to see the coloured squares, nothing else. Any suggestions? Antje
2008 Dec 05
6
levels update
...;,"X3") my.sub <- subset(df, X1 == "a" | X1 == "b") levels(my.sub$X1) # still gives me "a","b","c", though the subset does not contain entries with "c" anymore I guess, the solution is rather simple, but I cannot find it. Antje
2009 May 05
3
Heatmap without levelplot
...- matrix(seq(1,5, length.out = 12), nrow = 3) mat[1,2] <- 3.5 my.at <- seq(0.5,5.5, length.out = 6) my.col.regions <- rainbow(5) graph <- levelplot(t(mat[nrow(mat):1, ] ), at = my.at, col.regions = my.col.regions) print(graph) Can anybody help me with some hints or little examples? Antje
2008 May 23
2
Boxplot width
...pling number at the x-axis. This, I can do with "at" l <- list(d1,d2) boxplot(l, at=c(length(d1), length(d2)), xlim=c(0,200) ) but both plots are very thin and I'd like to increase the width of the plot. I tried "width" but probably I do it wrong. Can anybody help me? Antje
2011 Nov 16
3
access sublists by a variable
...tunately dict[a] does not work for me, because I see no possibility to access the inner elements of list "24" in that case i.e. dict[a][1] returns the whole list and not the first element. What is the correct syntax to access those elements with the help of a variable? Thanks in advance Antje
2008 Nov 16
4
duplicate values
...quot;Temperature" column. Now for the whole dataframe i would like to delete rows that have the same "Datetime" value as the prior row. I have tried unique(dataframe), but it does not work here because the rows are no real duplicates of each other. thanks in advance for your help! Antje
2011 Feb 21
2
Console output
..., I though there has been a possibility to force the output on the console with one element per line. Instead of this: > 1:10 [1] 1 2 3 4 5 6 7 8 9 10 something like this > 1:10 [1] 1 [2] 2 [3] 3 [4] 4 [5] 5 [6] 6 [7] 7 [8] 8 [9] 9 [10] 10 Can anybody help? Antje
2008 Dec 02
3
boxplot via plot command
...prisingly to me). Can anybody explain to me why? Is this documented somewhere? I've never consider this option before. x <- rnorm(300) l <- c(rep("label1",100), rep("label2",50), rep("label3",150)) df <- data.frame(as.factor(l), x) plot(df) Thank you! Antje
2005 Nov 21
3
Comparing rows of matrices with different dimensions
...quot;TRUE FALSE TRUE" or the rows where their is a match (rows 1 and 3) Till now I have tried things like b %in% a[,1:2] or so but that doesn't work because I want to compare the WHOLE row of b with the whole row of a without column 3. Thank you very much for any help. Regards, Antje [[alternative HTML version deleted]]
2008 Sep 07
4
XML - get node by name
...ot;> 44 </val> <val i="t2"> 11 </val> </data> </root> Now, I'd like to do something like this in R. Most important would be to retrieve a node just by its name, not by the whole path. How is it possible? Can anybody help me with this issue? Antje
2008 Sep 01
3
another histogram question
...ork but I don't know why...) data <- rnorm(100) # as example, of course this is not skewed... h <- hist(data, plot=FALSE) mh <- 5 hh <- list(h$breaks[0:(mh+1)], h$counts[0:mh],h$intensities[0:mh],h$density[0:mh],h$mids[0:mh],h$xname,h$equidist) names(hh) <- names(h) plot(hh) Antje
2007 Aug 24
2
Package installation
...install the package biOps (http://cran.mirroring.de/src/contrib/Descriptions/biOps.html) ? I cannot find it at any mirror provided by the GUI; I just found it as "tar.gz" which cannot be installed with the installation method... Maybe, I simply do something wrong? Thanks for any hint! Antje
2008 Sep 22
2
paste with list
...ing, ..., all n-th elements to a single string. # Example code (how it should look like): t1 <- c(1,2,3) t2 <- c(3.4,5.5,1.1) paste(t1,t2, sep="\t") # and now how the data is available tl <- list(t1,t2) ??? what do I have to do to get the same output ??? Can anybody help me? Antje
2008 Dec 03
2
Switch language
...it in English. The installation of a new version does not change the language setting though I think I've chosen "English" in the installation process (this choice was available, right?). Can anybody give me a hint? (Error-Messages in German are not easy to get a solution for...) Antje
2006 Aug 23
5
two density curves in one plot?
Hello, I was wondering if I can plot two curves I get from "density(data)" into one plot. I want to compare both. With the following commad, I just get one curve plotted: plot( density(mydata) ) Sorry for this stupid question but I could not find a solution until now... Antje