similar to: How to add a top X-axis with a different logarithmic scale?

Displaying 20 results from an estimated 5000 matches similar to: "How to add a top X-axis with a different logarithmic scale?"

2003 Dec 30
2
regexp problem on R 1.7.0
Hi, Am I missing something in using regexps in R? Below, 'egrep' means invokation of the command from the shell prompt. # I have > as.character(block.dist.vals) [1] "1e+06" "2e+06" "5e+06" # that I wish to convert to: "1" "2" "5" # OK (R and egrep) > sub( "e.+06", "", as.character(block.dist.vals) )
2004 Jun 14
3
How to 'stamp' a plot with meta-data?
Dear R users, Sometimes, for tracking purposes, I am interested to add to a plot some metadata such as * the date it was produced * filename that stores the plot * perhaps data sources, author, etc Ideally, I would like to be able to do this for any kind of plot, plot(), barplot(), hist(), etc.; and, to be able to produce plots with or without the metadata by a simple toggle mechanism.
2006 Nov 11
2
Strange yum behavior
Hello, 'yum search R' returns an impossibly-long list. So I tried 'yum search R.x86_64' and 'yum search R-2.3.0' and few others to no avail. (Google revealed that R package does exist in kbsingh repository.) However, 'yum install R' did offer to install the correct package. Can someone enlighten me as to why did the searches failed or generated a hugh list
2004 Feb 19
1
piece wise application of functions
Dear all, After struggling for some time with *apply() and eva() without success, I decided to ask for help. I have 3 lists labeled with, each contains 3 different interpolation functions with identical names: > names(missgp0) [1] "spl.1mb" "spl.2mb" "spl.5mb" > > names(missgp1) [1] "spl.1mb" "spl.2mb" "spl.5mb" > >
2004 Jan 15
2
Legend text -- discrepancy between X11 and postscript
Hi, When I place a legend on a plot it looks exactly as I intended on the screen. However, almost always, when I export this to postscript file, the legend's text protrudes through the legend's frame (the latter being placed correctly). See the appended example code. I can send the EPS file as well for those that are interested (<4 kb; <200 lines). I found nothing in the FAQS,
2005 Apr 05
3
How to do aggregate operations with non-scalar functions
Hi, I have a data set, the structure of which is something like this: > a <- rep(c("a", "b"), c(6,6)) > x <- rep(c("x", "y", "z"), c(4,4,4)) > df <- data.frame(a=a, x=x, r=rnorm(12)) The true data set has >1 million rows. The factors "a" and "x" have about 70 levels each; combined together they subset
2005 Aug 14
1
Labels on axes with log scales with lattice
I using lattice to make some plots and I want to make the y-axis on some of these plots use a log scale. In the following plot: x <- 1:10 y <- 2^x xyplot(log10(y) ~ x) I get tick marks on the y-axis at 0.5, 1.0, 1.5, 2.0, 2.5, and 3.0. I would rather have just 3 tick marks at 1.0, 2.0, and 3.0 but labeled 10, 100, and 1000. I know this can be done using the "at" and
2013 Jan 15
2
Month name in English, not R running language
When ploting a timeseries, the months are shown with abbreviation in the current language of the system. For example, x <- seq(from=as.Date("2000-04-01"), length.out=100, by=1) y <- rnorm(length(x), 5,2) plot(x, y) Show for me "avi mai jui jul" as I use R with French language localization. I see in the Windows FAQ how to completely change the language of R, but I
2010 Nov 20
2
plotting a timeline
I was trying to recreate this kind of timeline plot: http://www.vertex42.com/ExcelArticles/create-a-timeline.html As you can see in their excel example, the events are nicely placed out on both sides of the timeline axis. AFAIK there is no function to do this nicely in R-project. Furthermore, graphics and lattice packages are unable to draw the x-axis in the middle of the plot. (datapoints
2005 Mar 30
1
Finding the "height of a line of text" for axis
I would like to draw only the ticks of an axis, but not the axis itself. I don't think this can be done using axis(), so I am trying to write a cut-down version in R, which only draws ticks. The point at which I am stuck is that the length of a tick is set by par("tcl") as a fraction of the "height of a line of text". So I would like to draw a line whose length is also
2011 Feb 04
1
axTicks.Rd documentation bug
?axTicks says: usr: numeric vector of length four, defaulting to ?par("usr")? giving horizontal (?x?) and vertical (?y?) user coordinate limits. but this is not how the function is implemented -- in fact 'usr' should be a vector of length two corresponding to the appropriate elements of par("usr") [1:2 if side is 1 or 3, 3:4 if side is 2 or
2006 Dec 10
1
OT: profiling user applications
Hi, Is there an easy way to obtain statistics of user applications usage: who invoked what; for how long; what resources were used; etc. I am thinking of some kind of a super-ps that will integrate and summarize the usage profile during a long period of time - not just a snapshot. Background: I have a RH 7.3 machine that serves as the central node for a cluster that runs various
2012 Jan 06
1
Can levelplot colorkeys display a logarithmic scale evenly?
I'm using the {lattice} "levelplot" function to make a (more or less) 2-d histogram, and for the most part it's working fine with my data. However, I can't get the color key to do what I need. I can give it labels and custom cutoffs, but my cutoff lines (and hence my labels) aren't evenly spaced, instead they're more-or-less logarithmic, starting at
2009 Jan 27
3
plot Ticks
Is there a way to force the number of ticks along an axis ? I read the on-line documentation and tried many combinations of all available parameters from functions par(), axTicks(), axis(), plot() ... but no luck ! Thank you very much, Maura tutti i telefonini TIM! [[alternative HTML version deleted]]
2004 Mar 11
1
rsync + ssh: fails from cron
Hi, My ssh set up, on both 'work' and 'home' machines uses the private-public key authentication (key uses non-empty passphrase). So from the 'home' shell prompt the following works without prompting to password or passphrase: rsync -avz --delete -e ssh remote.work.machine:publicats $HOME/work >From cron, however, I am prompted for a password, though. I have seen
2005 Jun 28
2
axTicks on a reverse ylog plot (PR#7973)
There is still issues with the reversed y-log scale plot: # Test case A: works as expected plot(10:100,log="y",ylim=c(100,11)) grid() par("yaxp") # Test case B: grid does not have horizontal lines; par("yaxp") is different plot(1:100,log="y",ylim=c(100,10)) grid() par("yaxp") In the second test case, axTicks for the horizontal lines (in
2004 Feb 19
1
Possible error in ?axTicks
Hi all, Before posting to r-bugs, I thought that I would just verify this one first. It looks like the help for axTicks() needs to be corrected. It presently says: 'axTicks()' can be regarded as an R implementation of the C function 'CreateAtVector()' in '..../src/main/graphics.c' which is called by 'axis(side,*)' when no argument 'at' is specified.
2008 Jun 18
1
Help with axis labels
Hi I have patched together (from various sources) the following code to get semi-logarithmic plot. Unfortunately, my labels come out also at intermediate places between 10^2, 10^3, 10^4 etc. Since I put the code together from various sources and do not understand fully how the code is working, I have not been able to get rid of the labels like 10^1.69897, 10^2.69897 etc. I would appreciate if
2012 Aug 22
1
Plot label axis with expression
Hi all, I need help with axis in plot. I want to edit y axis label of my plot. My data is like: x <- c(100,50,10,1,0.1,0.05,0.001) plot(log(x)) axTicks(2) # Label of y axis [1] -6 -4 -2 0 2 4 I'd like that y axis label was like: e^-6, e^-4, etc. (with text "e" superscript -6, -4, etc.) I try to use expression(), but don't work. plot(log(x), yaxt="n")
2007 May 12
2
Screen blanks after initial setup (Centos 5)
Hi, The installation process went without noticable problems; this is true to the setup phase immediately after the installtion. However: after pressing "Finish" in the Setup Agent the screen blanked on me - Ctrl-Alt-F1, Ctrl-Alt-F2, Ctrl-Alt-backspace, Ctrl-Alt-Del didn't help. Nada. Did someone else have encountered this? Any recommendations? Thanks in advance. System: