Displaying 20 results from an estimated 10000 matches similar to: "Two lines, two scales, one graph"
2013 Oct 11
1
labeling abscissa using a function of the plotted scale
Is it easy or difficult to label the abscissa of a scatter graph as
1/trueScaleValue at that point?
--
View this message in context: http://r.789695.n4.nabble.com/labeling-abscissa-using-a-function-of-the-plotted-scale-tp4678075.html
Sent from the R help mailing list archive at Nabble.com.
2005 Oct 10
4
plot - no main title and missing abscissa value
Hi all.
I have defined a plot thus:
par(mar=c(5,5,4,5),las=1, xpd=NA)
plot(Day, Ym1Imp, ylim=c(0,100), type="b", bty="l", main="Ym1
Expression", cex=1.3, xaxt="n", yaxt="n") #plot implant data
axis(side=1, at=c(0,1,3,5,7,10,14,21), labels=c(0,1,3,5,7,10,14,21)) #
label x axis
mtext("Day", side =1, at=10, line=3, cex=1.2) # title x
2009 Jan 08
2
interpolation to abscissa
Readers,
I have looked at various documents hosted on the web site; I couldn't
find anything on interpolation. So I started r and accessed the help
(help.start()). (by the way is it possible to configure r to open help
in opera instead of firefox?) Initially I read the help for the akima
package but couldn't understand it. Next I tried the asplines package
help.
I tried to copy the
2003 Jun 05
6
dynamics of functions
Dear list,
I would like to study the dynamics of
functions using R (instead of mathematica e.g.),
i.e. the behavior of points under iteration
of a function.
So I tried (in vain) writing a function
myfunction <- function(f,n,x){...}
in order to compute f^{n}(x), f^{n}(x) being
the function f composed with itself n-1 times.
n is a natural number, and the argument x is
the abscissa of the point I
2002 Dec 08
3
strange QQ-Plot
Hi,
i am working on a data set with EDA. That includes QQ-Plots of
residuals vs expected normal distribution.
What puzzles me is that the range of ordinate and abscissae is
so different: while the theoretical quantiles range from [-2, 2]
the sample quantiles on the ordinate do extent from [-20, 50].
Quite obviously some kind of transformation is done.
Although i intensively RTFM i could not
2000 Mar 26
2
very simple repeated measures, newbie questions
Suppose I do a psychology experiment in which each of six
subjects does several items in each of five fixed conditions, A,
B, C, D, and E. The items are randomized separately for each
subject, so I can ignore order. All I want to know is whether
the five conditions differ. The data look like this. Each row
is a subject, and each number is the score in the given
condition.
A B C D E
4 1
2002 Jan 29
1
Newbe Q: Some plotting diffculty..
>From owner-r-help at stat.math.ethz.ch Tue Jan 29 06:13:23 2002
>I've got a data-frame contining variables i columns named after the
>specified subject and with data which represents time of observation.
>
>What I would like to do is to get a plot with observation time on the
>ordinate and subject on the abscissa -- kind of a "at what time did I
>observe the
2005 Apr 14
1
Strange behavior of atan2
Dear all,
I've got a problem with the function atan2. For a couple of coordinates
x and y,
This function returns the angle between the vector of coordinates (x, y)
and the
abscissa axis, i.e. it is the same as atan(y/x) (as indicated on the
help page).
If we consider the vector with coordinates x = 0 and y = 0, we have
the following result:
> atan(0/0)
[1] NaN
This is expected.
2007 Mar 08
1
chronological scatterplots
Greets Folks,
I've been wrestling with how to better control plotting of time data and
just can't seem to see the right path. My dataset has thousands of points
distributes across a number of years. I would like to plot the responses
according to increasing time with nice boundaries - perhaps integer months
- along the abscissa. However, the earliest time occurs mid-month and I
2008 Mar 05
1
Reversed but positive axis in trellis plots?
Hi,
In my discpipline, it is common to plot one acoustic property on a
positive scale but from top to bottom on the ordinate and the same for
another measurement on the abscissa.
So, the origin of the plot is on the top right of the plot, with
increasing values to the left /down. This is to highlight the
correlation between the acoustic measurement and the position of the
forming structure, for
2011 Mar 26
1
2 questions about probplot in package e1071
The contributed package e1071 does exactly what I want except that I
need to have (1) the abscissa and ordinate axes swapped, with the
probability scale on the bottom and the quantiles scale on the LHS.
Using the following example:
library(e1071)
x <- rnorm(100, mean=5)
probplot(x, line=FALSE)
and (2) I need to have lines connecting the plotted symbols, as you get
with:
2006 Dec 27
1
Question about predict function
I am working with a non-parametic smoothing operation using a
Generalized Additive Model. It is a bivariate data set. I know how to
do the smooth, and out comes a nice smooth curve.
Now I want to find the value of the smoothed curve for several values
of x (the abscissa). This can be done (please correct me if I am
wrong) by using the predict.gam function. You feed the predict.gam
function a
2010 Nov 09
1
lattice mutiple y scales in each panel
Hi,
I have a data set with two y variables (y1 and y2) and one dependent
variable(x) and a 1 strata variable Z. It so happens that y1 and y2 have
very different scales such that single y-axis scale doesnot allow the data
to be visualized fully.
I am trying the following lattce graphics to do my plot :
xyplot(y1 + y2~x|Z,data=D,type="b")
This provides the appropriate plots by due to
2005 Jul 16
1
Confidence Intervals for Arbitrary Functions
I have a rather basic background in statistics, and am looking for
assistance in solving what I expect is a common type of problem.
I have measurements of physical processes, and mathematical models of
those processes that I want to feed the measurements into. A simple case
is using measurements of electric power entering and leaving a
power conversion device, sampled at regular intervals, and
1999 Nov 13
1
image()
May I raise the issue of the behaviour of image()? In image() dim(z) is
supposed to be c(length(x), length(y)). This suggests that the user is
supplying the midpoints of the rectangles. For all but the outer
rectangles this is true. The outer rectangles, however, are only
displayed in half width. So it is not possible to show correctly an image
plot of equally-spaced abscissa. I would hazard
2006 Feb 09
1
converting lat-long coordinates to Albers Conical Equal Area coordinates
####################################################################################
We have used maptools to construct state, county, township, census-tract,
and zipcode
level R maps with an Albers Conical Equal Area projection. We would like
to be able to
plot the location of weather stations or other point locations on the
maps. The data
the point locations are in latitude-longitude units
2009 Apr 10
2
Two different scales for the same axis in the same plot.
Hello,
Could anyone tell me how to plot data on two different scales in the same axis in the same plot?
Here is my quandary:
The range of my X axis runs from 0 to 10, but the majority of my meaningful data
lies between 7 and 10. The data from 0 to 7 is essentially noise.
Is there a way for me to present my data such that the range from 0 to 7 takes
up a smaller amount of space on the graph
2012 May 02
1
Two ecdf with log-scales
Hi,
i want to plot empirical cumulative density functions for two variables in
one plot. For better visualizing the differences in the two cumulative curves I'd like to log-scale the axis.
So far I found 3 possible functions to plot ecdf:
1) ecdf() from the package 'stats'. I don't know how to successfully set the log.scales? Combining two plots is not a problem:
plot(ecdf(x1))
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
2008 Mar 25
5
Thinking about using two y-scales on your plot?
Please read this first:
http://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf
It's a reasoned discussion of why it's a bad idea and proposes some
alternative methods.
Another good article is:
K. W. Haemer. Double scales are dangerous. The American Statistician,
2(3):24?24, 1948.
People have been advising dual-axis plots for (at least) 60 years!
Hadley