[R] adjust font in ggplot2 to LaTeX document

2012-10-01 Thread Jonas Stein
e a binary font file? Can someone give me a link to an example? Kind regards and thanks a lot, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/po

[R] how to qplot two x-axis x1:Farenheit x2:Celsius

2012-09-12 Thread Jonas Stein
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 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] qplot with many files (each one curve)

2012-09-10 Thread Jonas Stein
he 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 __ R-help

Re: [R] nls problem: singular gradient

2012-07-12 Thread Jonas Stein
On 07/12/2012 01:39 AM, Duncan Murdoch wrote: On 12-07-11 2:34 PM, Jonas Stein wrote: Take a look at the predicted values at your starting fit: there's a discontinuity at 0.4, which sure makes it look as though overflow is occurring. I'd recommend expanding tanh() in terms of expone

Re: [R] nls problem: singular gradient

2012-07-11 Thread Jonas Stein
ength(t))*0.001 plot(x=t, y=yy, pch=18) dd <- data.frame(y=yy, x=t) nlsfit <- nls(data=dd, y ~ 1/2 * ( 1- mytanh((x - ttt)/0.0001) * exp(-x / tau2) ), start=list(ttt=0.5, tau2=0.02) , trace=TRUE) ==== R CODE ENDS HERE === -- Jonas Stein

[R] nls problem: singular gradient

2012-07-11 Thread Jonas Stein
E) # get error: # Error in nls(data = dd, y ~ 1/2 * (1 - tanh((x - ttt)/smallc) * exp(-x/tau2)), : # singular gradient -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide h

[R] cairo_pdf() vs. pdf() what is the difference?

2012-04-16 Thread Jonas Stein
cairo_pdf() vs. pdf() what is the difference between them and which one would you suggest to use in combination with pdflatex? kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] how to plot 2d matrix as coloured squares?

2012-04-10 Thread Jonas Stein
regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] fit data to y~A+B*sin(C*x)

2012-02-14 Thread Jonas Stein
ta 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 __ R-help@r-project.org mailing list https://stat.eth

Re: [R] how to plot a nice legend?

2012-02-11 Thread Jonas Stein
and we can see the code used. sure http://www.r-bloggers.com/ggheat-a-ggplot2-style-heatmap-function/ kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide htt

Re: [R] how to plot a nice legend?

2012-02-11 Thread Jonas Stein
gend like this in a standard plot like plot(1:10) too? http://www.r-bloggers.com/wp-content/uploads/2011/03/heatmap.png kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] how to plot a nice legend?

2012-02-11 Thread Jonas Stein
s 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 __ R-help@r-project.org mailing list

Re: [R] R package dev: how to export constant?

2012-01-19 Thread Jonas Stein
s a si2float converter in future... Betatesters are welcome. After some more testing i want to upload the package to the R package collection. kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] R package dev: how to export constant?

2012-01-18 Thread Jonas Stein
On 2012-01-18, William Dunlap wrote: > Try adding > LazyData: yes > to the DESCRIPTION file. >> [3] https://github.com/jonasstein/sitools Thank you. Now it works and I could add all SI prefixes. -- Jonas Stein __ R-help@r-proj

[R] R package dev: how to export constant?

2012-01-17 Thread Jonas Stein
] 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 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] howto test a package without installation

2012-01-17 Thread Jonas Stein
rote. It works. Thank you. How can i get my R clean again afterwards to test the next version? kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www

Re: [R] howto test a package without installation

2012-01-17 Thread Jonas Stein
to directory ‘/usr/local/lib/R/site-library’ R tries to install something in my system. That may confuse my debian packagemanagement. kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] howto test a package without installation

2012-01-15 Thread Jonas Stein
3 * kilo [1] 3000 [*] https://github.com/jonasstein/sitools -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and prov

Re: [R] par.plot() for repeated measurements

2012-01-14 Thread Jonas Stein
,ylim=c(45,184),ylab='FACIT-PAL',xlab='Time > to death',color=FALSE,lwd=1) i can not use your example, as i have no enable2r.csv, but perhaps you have luck if you change xlab='Time to death' to xlab="Time to death

Re: [R] find inflexion point of discrete value list with R

2012-01-13 Thread Jonas Stein
ite set of points you can at least deal with it > exhaustively. my real data is not limited to integer. Do you know a ready to use code example for this? Would it be a good idea to create a function and make it public to the community? And if yes as single .R file, or as a library? kind rega

Re: [R] Rpad.org down? Searching latest R-Reference card

2012-01-12 Thread Jonas Stein
Paradis (R for Beginners) I have uploaded the source to https://github.com/jonasstein/R-Reference-Card It is my favourite R Reference Card and I am looking forward to recieve your suggestion for improvement. Is there a prominent place where i should push the compiled .PDF to? Kind regards, --

[R] Rpad.org down? Searching latest R-Reference card

2012-01-10 Thread Jonas Stein
Hi, i'd like to update my R-Reference card and commit some edits, but i could not get the source from rpad.org Did it move? kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] automatic SI prefixes as ticklabels on axis

2012-01-05 Thread Jonas Stein
On 2012-01-05, Jonas Stein wrote: > i want to plot values with frequency on a logarithmic x axis. > similar to this example that i found in the web: > http://www.usspeaker.com/jensen%20p15n-graph.gif > > I would like to convert long numbers to si prefix notation > like in the e

[R] wish: enable joining this Mailinglist via Gmane

2012-01-05 Thread Jonas Stein
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 __ R

[R] automatic SI prefixes as ticklabels on axis

2012-01-05 Thread Jonas Stein
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 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] find inflexion point of discrete value list with R

2012-01-02 Thread Jonas Stein
i have a list of values like this x y 1 3 2 2 3 3 4 4 5 5 6 4 7 3 8 2 9 3 and need the inflexion points (and all max and min). Is there a nice way to get the local max, min and inflexion points? kind regards, -- Jonas Stein __ R-help@r-project.org

Re: [R] position of first and last axis tick

2011-10-17 Thread Jonas Stein
m(25),rnorm(25), xaxs ="i", yaxs="i", xlim=c(-2,2), > ylim=c(-2,2)) That is exactly what i have been looking for. Thank you. >> [1] >> http://commons.wikimedia.org/wiki/File:Atmospheric_radiocarbon_1954-1993.svg -- Jonas Stein

[R] position of first and last axis tick

2011-10-16 Thread Jonas Stein
regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Plot with same font like in LaTeX

2011-03-02 Thread Jonas Stein
to try it again now. kind regards, -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] Sweave: Howto write real TeX formula in plot

2009-05-12 Thread Jonas Stein
, ‘digest’, ‘cacheSweave’ are not available | 2: In install.packages("pgfSweave", , "http://www.rforge.net/";) : | installation of package 'pgfSweave' had non-zero exit status | ` what will i have to do now? And could someone give me an example how to write a formu

[R] howto find x value where x=max(x)

2009-05-08 Thread Jonas Stein
akFreqHz = 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 __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] how to calculace the Observational error of an variable (nls fit)

2009-05-08 Thread Jonas Stein
or a = 1.4e-05 with 98% confidence Thank you for reading so far and thank you for any help. -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/p

[R] Sweave: Howto write real TeX formula in plot

2009-04-19 Thread Jonas Stein
font that is used in the TeX-document? Thank you for any help. -- Jonas Stein __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

[R] How to rotate axis labels? 2009

2009-03-26 Thread Jonas Stein
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 __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] PC configuration you are using

2008-05-14 Thread Jonas Stein
al > statist (processor, RAM, HDD...)? It is debain linux on a 3.2 GHz AMD with 2 GB RAM and 400 GB HDD here. Using Emacs (ESS) -- Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] howto get significant digits for round()

2008-05-14 Thread Jonas Stein
CC to email, thanks so far, -- Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, m

[R] howto import .xls and .ods

2008-05-01 Thread Jonas Stein
Hi, i want to import 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, -- Jo

Re: [R] read data into list of matrix

2008-04-14 Thread Jonas Stein
does not work. ps: thank you all for the replies per mail and the list here. -- Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

[R] read data into list of matrix

2008-04-14 Thread Jonas Stein
files[i] ) } but this does not work of course. Has anyone a good hint? Thank you, -- Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:

[R] How to include files in .R?

2008-04-04 Thread Jonas Stein
clude("~/R/myconstants.R") kind regards, -- Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provid

[R] howto find corresponding values in datasource?

2008-03-12 Thread Jonas Stein
, nknots = 10, spar=0.5) mydiff <- predict(myspl, 0:max(H), deriv=1) # find the maximum peak max(y) y1=y2= max(mydiff$y) # now i want to plot a line through the maximum of the derivation # how can i get the x-coordinate? # segments(x1,y1,x2,y2) detach() --8<----

Re: [R] howto examine axis intercepts of hysteresis curve?

2008-02-07 Thread Jonas Stein
http://pl.physik.tu-berlin.de/groups/pg262/Protokolle/Hysterese/sv4084103.gif -- Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project

[R] howto examine axis intercepts of hysteresis curve?

2008-02-07 Thread Jonas Stein
I have a dozen plots that looks similar to the linked one [1] How can R calculate the intercepts with x-axis and y-axis in best way? As there are many data files to process, the solution should not need a lot manual work per data file. Thanks a lot, -- Jonas Stein <[EMAIL PROTEC

[R] R + LaTeX formula

2007-12-08 Thread Jonas Stein
t it is a bit unhandy to scale later and its difficult to get nice formula in the plots. And how should i write formulas on the axis or at specific points? Has someone had some effort in exporting plots to pstricks or pictex? kind regards and thank you for reading so far, --

[R] how to wait after plotting in BATCH mode?

2007-11-25 Thread Jonas Stein
regards, Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-con

[R] howto remove all variables (cleanup)

2007-11-25 Thread Jonas Stein
... -- kind regards, Jonas Stein <[EMAIL PROTECTED]> __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal

[R] looking for function like rollmean()

2007-11-23 Thread Jonas Stein
Hi, i have some data, that has 1-5 % noise. I want to smooth this data without loosing rows. rollmean() would be great, but it returns a vector of different size as the initial vector. -- kind regards, Jonas Stein <[EMAIL PROTECTED]> __ R-