Displaying 20 results from an estimated 22 matches for "jonasstein".
2012 Jan 18
4
R package dev: how to export constant?
...d milli in [1]. These should be available
after loading
library(sitools)
How should i export them and what have i done wrong?
(Other suggestions for improving the package are welcome too)
The ready to use .tar.gz and the source can be found on github [2,3]
kind regatds,
[1] https://github.com/jonasstein/sitools/blob/master/init.R
[2] https://github.com/jonasstein/sitools/downloads
[3] https://github.com/jonasstein/sitools
--
Jonas Stein <news at jonasstein.de>
2012 Jan 16
2
howto test a package without installation
...selfwritten package [*]
without to install it to my debian system?
I think of something like doing this:
/tmp/$ R
R version 2.11.1 (2010-05-31)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
> library(/tmp/sitools)
3 * kilo
[1] 3000
[*] https://github.com/jonasstein/sitools
--
Jonas Stein <news at jonasstein.de>
2007 Nov 25
2
how to wait after plotting in BATCH mode?
...command on console:
$ R CMD BATCH cp_messung.R
in the R-script i wrote x11() in the beginning, so it draws a nice plot on
my screen.
But sadly it disappeares after a second or two. How can i make it to wait
until i press a key or something?
thank you.
--
kind regards,
Jonas Stein <news at jonasstein.de>
2012 Feb 10
5
how to plot a nice legend?
...aying around with coordinates and scaling consumes a lot time
- standard settings for the text need adjustment
(linespacing is quite large and so on)
Is there an alternative to legend()?
Is it possible to place the legend() outside of the plot area?
Kind regards,
--
Jonas Stein <news at jonasstein.de>
2009 May 08
4
howto find x value where x=max(x)
...e "Frequenz" where "AmpNorm" is max.
I use this line as workaround:
PeakFreqHz = subset(fp, AmpNorm == max(AmpNorm))$Frequenz[1]
Is there something nicer?
And is there an easy way to do the same on "predict()"
Thank you and kind regards,
--
Jonas Stein <news at jonasstein.de>
2012 Jul 11
2
nls problem: singular gradient
...a.frame(y=yy, x=t)
nlsfit <- nls(data=dd, y ~ 1/2 * ( 1- tanh((x - ttt)/smallc) * exp(-x / tau2) ), start=list(ttt=0.4, tau2=0.1) , trace=TRUE)
# get error:
# Error in nls(data = dd, y ~ 1/2 * (1 - tanh((x - ttt)/smallc) * exp(-x/tau2)), :
# singular gradient
--
Jonas Stein <news at jonasstein.de>
2012 Jan 05
4
automatic SI prefixes as ticklabels on axis
...convert long numbers to si prefix notation
like in the example
(200000 to 200k, 35000000 to 3.5 M)
Of course i could create labels by hand, but
i have many files so i need some automatic function.
Has anyone done that in R?
Kind regards and thank you for your help,
--
Jonas Stein <news at jonasstein.de>
2008 Apr 04
1
How to include files in .R?
...cumentation
about a 'include' command or something like this.
I have to set many constants in my R-files and want to move all these to
one file, so that i can reuse it in all other R-files.
Something like
include("~/R/myconstants.R")
kind regards,
--
Jonas Stein <news at jonasstein.de>
2008 Apr 14
1
read data into list of matrix
...le 'i'.
something like
files = c("0125um","2000um","2200um","2500um","2700um")
for (i in 1:5)
{
fp[i] <- read.table( files[i] )
}
but this does not work of course.
Has anyone a good hint?
Thank you,
--
Jonas Stein <news at jonasstein.de>
2012 Sep 11
2
how to qplot two x-axis x1:Farenheit x2:Celsius
Hi,
how can i plot two different x axis in a ggplot2 qplot?
I want to plot Farenheit and Celsius in one diagram.
x1:Farenheit x2:Celsius
kind regards,
--
Jonas Stein <news at jonasstein.de>
2008 May 01
2
howto import .xls and .ods
...rt data from .ods and .xls files in R on a linux system.
Seems it was a faq in the past, but i found only solutions for Windows.
Is there a handy solution for linux? The best would be something like
mytab <-read.ods(...)
Any hints? Thanks a lot for reading so far,
--
Jonas Stein <news at jonasstein.de>
2011 Mar 02
4
Plot with same font like in LaTeX
...s.
- usage of the same font on axes and in legend like LaTeX uses
(for example "Computer Modern")
- put real LaTeX formulas on the axes
Have you any hints how i can achieve that?
I had no luck two years ago, but i want to try it again now.
kind regards,
--
Jonas Stein <news at jonasstein.de>
2009 Mar 26
3
How to rotate axis labels? 2009
...R-FAQ.html#How-can-I-create-rotated-axis-labels_003f
Now its the year 2009 and there might have been some improvement...
Does anyone know a nice and easy way to turn labels on the y axis in the
same direction as the x labels?
Thank you very much for reading and hints,
--
Jonas Stein <news at jonasstein.de>
2008 May 14
1
howto get significant digits for round()
...length delta-length
12.2232 0.4
123.422 0.034123
1234 12
i want to round the value to the significant digits in this way:
my-round(length,delta-length)
12.2 , 0.4
123.42 , 0.03
1234 , 12
how can i do this with R?
please CC to email,
thanks so far,
--
Jonas Stein <news at jonasstein.de>
2012 Jan 09
1
par.plot() for repeated measurements
Hello,
I am using the package gamlss in R to plot repeated measurements. The
command I am using is par.plot(). It works great except one thing about the
label of the axises. I tried to label both x and y axises using ylab and
xlab options. But the plot only gives variable variables. The labels did not
show up. Below is the code I used. Any comments are appreciated! Thanks.
library(gamlss)
2012 Sep 30
2
adjust font in ggplot2 to LaTeX document
...ut the articles have been from 2009 too, so i guess there will be
some easy solution today...
Is "theme" the keyword to find the solution?
Or will i have to include a binary font file?
Can someone give me a link to an example?
Kind regards and thanks a lot,
--
Jonas Stein <news at jonasstein.de>
2012 Feb 13
3
fit data to y~A+B*sin(C*x)
...ength(testsin), sd = 0.01) #add noise
mydata <- list(X=1:100, Y=testsin) # generate mydata object
nlmod <- nls(X ~ A+B*sin(C* Y), data=mydata, start=list(A=2, B=4, C=1), trace=TRUE)
# this nls fit fails.
Who can help me to fit this type of data?
Kind regards,
--
Jonas Stein <news at jonasstein.de>
2012 Sep 09
5
qplot with many files (each one curve)
...e variable containing a dataframe.
When i uesed the classic "plot' command i could add
the curves with something like
for... {
data<-read.csv....
points(data$x, data$y, col=myrainbow, type="l")
}
How would you solve it in ggplot?
Kind regards,
--
Jonas Stein <news at jonasstein.de>
2008 May 07
2
PC configuration you are using
Hello,
As I mentioned in the previous message we are developing solution for
wholesale companies to analyze their sales transactions by associative
rules. I would very much appreciated if the community could give us
some hint of what is a typical PC configuration of a professional
statist (processor, RAM, HDD...)?
Thanks a lot in advance and I highly appreciate your feedback!
Kind regards,
2012 Jan 05
0
wish: enable joining this Mailinglist via Gmane
...e will get a verification mail
(same thing like mailman does here
https://stat.ethz.ch/mailman/listinfo/r-help
If he can reply he will be permanently accepted as member.
If you like this idea, could the responible person check
the optionflag in gmane?
Kind regards,
--
Jonas Stein <news at jonasstein.de>