Displaying 20 results from an estimated 3426 matches for "ylabs".
Did you mean:
labs
2008 Jun 10
2
substitute() reading data instead of name
I seem to have run across a bug in which substitute() inside a function
definition gets 'confused.' The code is listed below.
The same behavior occurs under OSX 10.3.9, PPC, w/ R2.2 and Rgui 1.14
and under OSX 10.4.11 Intel w/ 2.70 and the latest Rgui.
What I see is that 'xlab' properly has the name of the data I entered
for the x-input. But 'ylab' contains the string
2020 Mar 27
2
Expressions from boxplot() passed to bxp()
Hi,
Is this expected behavior (R-3.6.0)?
dat <- cbind(x = 1:10, y = 10:1)
ylab <- substitute(X[t], list(t = 2))
plot(dat, ylab = ylab) # works (correctly displays ylab)
boxplot(dat, ylab = ylab) # fails
boxplot(dat, ylab = as.expression(ylab)) # works
Thanks & cheers,
M
2012 Nov 19
3
Plot Area Dimensions
Dear colleagues,
I wish to create a figure with 6 plots arranged vertically with no spacing
between them as they all have a common x-axis.
However, using the code below I'm unable to get the plot area the same size
for each plot.
The bottom plot with the x-axis label is smaller than the others, as is the
top plot which has larger margins.
How can I get the plot region the same size for
2010 Sep 28
1
A problem with plotting a long expression in ylab ?
Hello,
It seems that there is a problem when plotting an expression in the ylab of
a plot in case it is too long.
Example:
plot(1)
title(ylab = "test
looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
") # work
plot(1)
title(ylab = expression(paste("test (% of 360" *degree, ")"))) # works
plot(1)
title(ylab = expression(paste("test
2010 Nov 24
4
shifting down ylab in a plot
Hi guys,
I am trying to shift down the "ylab" of my plot but can't find how to do it.
I tried to tune "mar" but it enable more room for the labels to be displayed
but it does not move to "ylab" as I would like.
Is there a way with "par" to shift down my "ylab" ??
Cheers
--
View this message in context:
2003 May 03
1
can't plot ylab in graph
Dear People,
I am sure I am missing something obvious as usual, but in the following
graph I can't plot ylab.
Ignoring unimportant details, I am plotting one instance of truehist() and
one instance of curve() on the same graph. Truehist() won't let me pass
the ylab argument. It gives me the error
Error in plot.default(xlim, c(0, ymax), type = "n", xlab = xlab, ylab =
2009 Nov 24
4
Graphic Device - View/get all graphics
Hi Listers,
I am producing some graphics that the commands are in a FUNCTION...
The problem is that I end up viewing just last graphic and in my FUNCTION
there are 4 graphics with the PAR command function... Like those below...
How do I view/get the other 3 graphics? Any help?
Thanks in advance...
histogram<-par(mfrow=c(1,2))
hist(rw_mean_app,main='Bootstrap Method
2011 Jun 02
1
ylab spacing in resizePanels in latticeExtra
I would like the ylab in the second, resized graph to be centered on the
actual positions of the panels
of the second graph, not on the positions appropriate for the first graph.
How can that be specified.
Toggle the two graphs to see that the ylab is identically spaced in both,
even though the panels are
differently sized.
Thanks,
Rich
windows.options(record=TRUE) ## We need to compare two
2019 Oct 01
1
Improvement in hist command documentation
Hi all,
In the histogram created with the `hist` command, the label of the y axis reads "Frequency ?.
Finding that the ylab key is used to change (localize) that word may seem difficult for people
who are beginners either in R or in english.
I suggest very minor modifications of the file hist.Rd at https://svn.r-project.org/R/trunk/src/library/graphics/man/hist.Rd.
1) make the default value
2003 Apr 30
2
ylab in plot.POSIXct
I am using R-1.7.0 and have some data which consist of one vector of
numbers and a second corresponding vector of dates belonging to the
POSIXct class. I would like to plot the numbers against the dates.
What is the best way to do this?
It almost works to just call `plot.' However if I do this while using
the `ylab' parameter I get a warning message:
parameter "ylab"
2010 May 13
3
Multiple plots; single x(y) labels
Hi All,
Can anyone please help me with getting a single x and y-axis label while
plotting muliple plots. Here is the code:
par(mfcol=c(2,2))
plot(x <- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="")
plot(x <- sort(rnorm(27)), type = "s", main = "", ylab="", xlab="")
plot(x <- sort(rnorm(47)), type =
2010 Nov 08
2
Several lattice plots on one page
Dear all,
I am trying (!!!) to generate pdfs that have 8 plots on one page:
df = data.frame(
day = c(1,2,3,4),
var1 = c(1,2,3,4),
var2 = c(100,200,300,4000),
var3 = c(10,20,300,40000),
var4 = c(100000,20000,30000,4000),
var5 = c(10,20,30,40),
var6 = c(0.001,0.002,0.003,0.004),
var7 = c(123,223,123,412),
var8 = c(213,123,234,435),
all = as.factor(c(1,1,1,1)))
2008 Apr 22
1
plot(x) in 2.7.0 (with y=NULL) proposed code correction
Hi all:
following the previous discussion, it looks like plot(x) with y=NULL
still does not work correctly. If one tries for example plot(1:5) it
works, but already for plot(runif(100)) it does not. I posted the
proposed correction for plot.POSIXct and plot.POSIXlt before. Please
voice your opinions whether the following fix for plot.default could be
reasonable? I include the full function and
2010 Jun 26
2
several common sub-axes within multiple plot area
Dear List,
I'd really appreciate tip's or code demonstrating how i can achieve some
common axis labels integrated into a multiple plot.
In my example (below), i'm trying to achieve:
-a single "Results 1 (Int)" centered & btwn row 1 and row 2;
-a single "Results 2 (Int)" centered & btwn row 2 and row 3; and,
-a single "Results 3 (Int)" centered
2006 Jun 14
2
positioning of separate y-axis labels in xyplot
I like the functionality provided by outer=TRUE, but when it comes time
to place separate xlabs or ylabs, I always end up 'eyeballing' it on a
case-by-case basis. For example,
##begin example
require(lattice)
cars.lo <- loess(dist ~ speed, cars)
print(xyplot(cars.lo$residuals+cars.lo$fitted~cars.lo$x,
strip=FALSE,
outer=TRUE,
layout=c(1,2),...
2004 Aug 02
4
How to add a common title (or xlab, ylab) for multi-plots in the same window?
Dear R people,
I am using par(mfrow=c()) to plot multi-figures in the same window. And I like
to put a common title (and xlab, ylab) for all of plots. I have already left
some margin by resetting omi values in par() and hided all (xlab, ylab) for
each sub-plot. Could anyone tell me how to do that?
Thanks a lot,
Frank
2005 Jul 02
3
plot question
dear list:
in the following plot:
plot(rnorm(10),rnorm(10),xlab="year",ylab=expression
(paste('M x'*10^{3},)),font.lab=2)
font.lab=2, but xlab and ylab are different. I want
both labels in the same way. help?
a.d.
-------------------------------------------------
Email Enviado utilizando o servi佺o MegaMail
2012 Jun 08
3
Resolution issue with exporting plots from R and write tables in Latex code for producing pdf document
Dear R users
I am trying to exporting plots from R to an external folder, or to the
working directory, but the resolution of plots (pdf file) largely reduced.
Any way I can get same quality as my original plots?? e.g. I tested the
plotting part using one example and obtained pretty good (/readable)
quality for each plot in the (4*4) multiple graph. But when I did the loop
and tried to export
2005 Jan 24
2
parameter couldn't be set in high-level plot() function
Dear R users,
I am using function bandplot from the gplots package.
To my understanding (viewing the source of bandplot) it calls
function plot (add = FALSE) with the same parameters (except for a few
removed).
I would like to give extra parameters 'xlab' and 'ylab' to function
bandplot, but, as can be seen below, that raises warnings (and the
labels do not show up at the end).
2007 Jun 25
2
changing the position of the y label (ylab)
How can I change the position of the ylab, after
enlarging the margins with par(mar=...)?
Here is the relevant code snippet
----
par(mar=c(5.1,5.1,4.1,2.1))
plot(c(1979,2003),c(40,50),ylim=c(1,73),lab=c(20,10,1),pch=21,col='blue',bg='blue',axes=FALSE,xlab="Years",ylab="Onset/Withdrawl
Date",font.lab=2)
box()
axis(1,las=2)