similar to: How to rotate axis labels? 2009

Displaying 20 results from an estimated 10000 matches similar to: "How to rotate axis labels? 2009"

2011 Apr 16
2
Rotating the x-axis labels of a barplot
Dear listserv, Here is my latest formatting problem. I would like to rotate the x-axis labels by 45 degrees on a _barplot_. Apparently this is slightly different from the example given in the R FAQ, which is for rotating the x-axis labels on a scatterplot (http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f). I have adapted that code, as best I could, and
2006 Feb 08
2
rotating axis / mtext labels
Hello list. Is it possible to use par(srt=45) to rotate text by 45 degrees along the x-axis of a plot. Using: <code> x_names<-c("C57 Nv", "C57 Vacc", "129 Nv", "129 Vacc", "IFNgR Nv", "IFNgR Vacc") par(srt=45) mtext(font=2, x_names, side=1, line=1, at=l, cex=1.2) par(srt=0) </code> doesn't seem to work in R 2.2.0
2009 Dec 01
1
Aligning Diagonally Oriented Labels Under Bar Chart
I searched the forms (i.e., R Search)?and come up with the following suggested link: ?http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f I tried to implement what I believe was being implied by that URL and came up with the below: barplot(WorldPhones[1,], ??????? ylim=c(0, 50000), ??????? axes=FALSE, ann=FALSE, ???????
2012 Jan 05
4
automatic SI prefixes as ticklabels on axis
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 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
2012 Jan 18
4
R package dev: how to export constant?
Hi, i create two constants kilo and 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]
2012 Jan 16
2
howto test a package without installation
Hi, how can i play around with my first 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
2010 Aug 12
3
x-axis label print in 45 degree
Hi how can print x-axis labels in 45 degree in boxplot() (or plot in general)? I can use las=2 to print in 90 degree, but it looks ugly. Is there a simple option to do 45 degree easily? Thanks John
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>
2007 Nov 25
2
how to wait after plotting in BATCH mode?
when i plot with the following 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>
2004 Oct 27
4
ploting axes and rotating strings
Hello! I have two question that rose from trying to tacle the same problem in two differnet ways. What I want to do is to plot axes (only values or labels, no tick marks) in such a way that 'cex' can be very small, text can be perpendicular to the axis (as in axis(las=2) ) and the text is stil at the right position. Let me demonstrate with a small example:
2009 May 08
4
howto find x value where x=max(x)
Hi, fp is a data frame like this ,----[ fp ] | Frequenz AmpNorm | 1 3322 0.0379490639 | 2 3061 0.0476033058 | 3 2833 0.0592954124 | 4 2242 0.1275510204 `---- i want to find the "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
2012 Feb 10
5
how to plot a nice legend?
i'd like to plot a legend in my diagram. The diagram will be included in a TikZ LaTeX document later. I tried the legend() function, but - it can not find a good place it self where the legend fits and playing 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
2011 Mar 02
4
Plot with same font like in LaTeX
Hi, i want to make my plots look uniform in LaTeX documents. - 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>
1999 Aug 16
2
axis ignores srt/crt (PR#249)
Rotated text for axis labels should be possible with one of par(srt=90) axis(1,at,labels) par(srt=0) or axis(1,at,labels,srt=90) (or similar with crt instead of srt) None of these works in pre0.65 or in 0.64.2 _ platform sparc-sun-solaris2.7 arch sparc os solaris2.7 system sparc,
2008 May 01
2
howto import .xls and .ods
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, -- Jonas Stein <news at jonasstein.de>
2012 Jul 11
2
nls problem: singular gradient
Why fails nls with "singular gradient" here? I post a minimal example on the bottom and would be very happy if someone could help me. Kind regards, ########### # define some constants smallc <- 0.0001 t <- seq(0,1,0.001) t0 <- 0.5 tau1 <- 0.02 # generate yy(t) yy <- 1/2 * ( 1- tanh((t - t0)/smallc) * exp(-t / tau1) ) + rnorm(length(t))*0.01 # show the curve
2008 Apr 04
1
How to include files in .R?
Hi, may be its a very simple question, but i did not find any documentation 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
Hi i have a list of many files and want to load them into a list of tables, that can be adressed with a variable '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
2001 Feb 01
3
Rotated mtext
I seem to remember this coming up before, but I can't find it any messages I've saved or in the archives (searching by subject). I want to rotate mtext so that it's perpendicular to the right side. I tried srt=90 and lots of other values, but it seems to be ignored. Is there a way to do this? ______________________________________________________________________ Stuart Luppescu
2010 Jan 22
4
Rotating the axis labels in the basic graphic device ?
Hello dear R help group, I learned recently that one can change the rotation of labels in the axis, when using a lattice plot, for example: library(lattice) barchart(yield ~ variety , data = barley, groups = year, ylab = "Barley Yield (bushels/acre)", scales = list(rot = 45)) My question is: Is there an application of "rot" in something like