Displaying 20 results from an estimated 10000 matches similar to: "determining the order in which points are plotted"
2012 Oct 02
1
R process must die - can I save history?
I connected from my desktop Linux box to a Linux server using ssh in an
xterm, but that xterm was running in Xvnc. I'm running R on the server in
that xterm (over ssh). Something went wrong with Xvnc that has caused it
to hang, probably this bug:
https://bugs.launchpad.net/ubuntu/+source/vnc4/+bug/819473
So I can't get back to that ssh session or to R. I had done a bunch of
work
2000 May 02
1
Graph superimposition
I'm running a four-group, 15-variable discriminant analysis using the MASS
function lda(). Discriminant functions 1 and 2 explain about 93% of the
variance. I would like to plot the group scatters in a single scatterplot,
identify each group's centroid, and encircle the group scatter with a 90%
bivariate confidence ellipse. I can do this for each group on a separate
plot, but I
2011 Aug 24
2
Suppressing error messages printed in xyplot() with panel function
Hello,
I am using the xyplot() function to create a series of scatterplot
panels with lines of best fit. To draw the lines of best fit for each
panel, I am using a panel function. Here's an example:
> species <- as.character(c(rep(list("A", "B", "A"), 10), "B"))
> year <- as.character(c(rep(list("2009", "2009",
2017 Jun 09
1
Exercise in R
Hi i need some help with this exercise:
FIles: https://mega.nz/#!JxMFGIwC!qA85SBIBRVagCzYfmLwSvGuNK_qXqCXrakPxXryCpGg
#PARZIAL 3: GEO
#Data:
# Shapefile "INCOME" contains dummy information about revenue
# Common Abbreviations in the "INCOME" variable and the centroid altitude
#dell common in the variable "ALT"
#Richieste
# 1
#map of the variable
2012 Feb 10
1
Q - scatterplots
I was able to make a scatterplot but ...
1) what does the "86" mean? The "86" shows up on the graph as well.
> scatterplot (Shells/TotalEggs ~ Sector, data = data.to.analyze)
[1] "86"
2) Also how do you change the Y axis title? I don't want it to read
Shells/TotalEggs, instead I would like it to read Average Hatching Rate (%).
3) What does this error mean?
2010 Oct 15
1
multiple car scatterplots on one graph
R version 2.11.1 on WinXP
How do I get 3 scatterplots with marginal boxplots (from the
car package) onto a single plot?
I have a data frame called bank
> dim(bank)
[1] 46 5
head(bank)
x1 x2 x3 x4 pop
1 -0.45 -0.41 1.09 0.45 0
2 -0.56 -0.31 1.51 0.16 0
3 0.06 0.02 1.01 0.40 0
4 -0.07 -0.09 1.45 0.26 0
5 -0.10 -0.09 1.56 0.67 0
6 -0.14 -0.07 0.71 0.28 0
2010 Feb 23
2
scatterplots in car package
Hi, using scatterplot in 'car' package.
There are 4 plots to be pictured together (ignore data used):
library(car)
par(mfrow=c(3,1))
ts.plot(rnorm(100))
ts.plot(rnorm(100))
scatterplot(rnorm(100),rnorm(100),boxplot="",smooth=T) # scatter with
non-parametric fit
problem is that the last one comes 'always' separate.
Is there any way to solve it?? of course can use
2005 Jun 02
4
plot/lm/abline
Hi,
when I run
> plot.default(z1, z2, xlab = "x", ylab = "y", main = "xxxx", pch = "+")
> abline(lm(z1 ~ z2))
then the plot is plotted perfectly (scatterplot), however, the lm()
function doesnt appear on the plot. What could be wrong?
(Yesterday it worked perfectly, with the lm() line.)
Running R 2 on OS X.
Mathias Hunsk??r Furevik
Norway
2009 May 15
2
Additional points to scatter plot show up at wrong place
Hi everyone,
I have a problem with adding points to scatter plots.
The plot is drawn with the scatterplot() function from the car library:
scatterplot(data[,2] ~ data[,1],
data=data,smooth=F,reg.line=F,xlim=c(0.5,1),ylim=c(0.5,1),ylab="ML",xlab="Freq",cex.lab=1.9,cex.axis=1.8)
after that, I draw one line with abline(0,1,col="gray20") which works
perfectly fine.
2007 Aug 31
2
Automatic anchors for text boxes
Hi All,
I'm struggling to add text automatically to plots. I have a series of
scatterplots that I have stored in a script because the underlying data
changes often and the plots need to be regenerated. I use the scatterplot
function (defined in Rcmd, I believe). When one of the variables is a
factor, a boxplot is drawn over the scatter of the other variable. In the
case where x is a
2009 Jun 09
1
scatterplot (car) legend modification
hi,
new to R and using the car package to do some scatterplots with ellipses
hoping to add the area and center points of each ellipse to the legend?
looking for some direction / ideas.... here is the script, the data is
where
golf shots end up by club.
x (dispersion), y (distance), group (Club)
thanks, sam
## usage: Rscript shotScatter.R infile outfile level1 level2 minX maxX
minY maxY
2011 May 02
1
UNIX-like "cut" command in R
The R "cut" command is entirely different from the UNIX "cut" command.
The latter retains selected fields in a line of text. I can do that kind
of manipulation using sub() or gsub(), but it is tedious. I assume there
is an R function that will do this, but I don't know its name. Can you
tell me?
I'm also guessing that there is a web page somewhere that will tell
2007 Dec 18
9
Scatterplot Showing All Points
Hello all,
I'm trying to graph a scatterplot of a large (5,000 x,y coordinates) of data
with the caveat that many of the data points overlap with each other (share the
same x AND y coordinates). In using the usual "plot" command,
> plot(education, xlab="etc", ylab="etc")
it seems that the overlap of points is not shown in the graph. Namely, there
are
2011 Sep 07
1
storage and single-precision
I'm getting the impression from on-line docs that R cannot work with
single-precision floating-point numbers, but that it has a pseudo-mode for
single precision for communication with external programs.
I don't mind that R is using doubles internally, but what about storage?
If all I need to store is single-precision (32-bit), can I do that? When
it is read back into R it can be
2009 Apr 24
1
use of "input" in system()
First, it looks like there is bug in the documentation...
According to the documentation for system():
http://stat.ethz.ch/R-manual/R-patched/library/base/html/system.html
input if a character vector is supplied, this is copied one string per
line to a temporary file, and the standard input of command is
redirected to the file
This seems to mean that the standard input
2012 Nov 24
3
How to Label Cases in Scatterplots?
Hi everyone,
i?m trying to graphically display distributions with r and i?m working with
makrodata from the WVS.
the command i?m using is
> plot (Makrodata$v11, Makrodata$v12, xlab="Democracy Score Economist",
> ylab= share religious people")
i?m having an additional variable that identifies respectively labels the
2011 Jan 14
1
Question about scatterplot in package car
I am getting an error message from scatterplot:
> library(car)
> scatterplot(Prestige$income~Prestige$type)
Error in Summary.factor(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, :
range not meaningful for factors
In addition: Warning message:
In Ops.factor(x[floor(d)], x[ceiling(d)]) : + not meaningful for factors
>
The command does output the kind of graph that I want (boxplots).
2011 Apr 14
1
integer and floating-point storage
I note that "current implementations of R use 32-bit integers for integer
vectors," but I am working with large arrays that contain integers from 0
to 3, so they could be stored as unsigned 8-bit integers. Can R do this?
(FYI -- This is for storing minor-allele counts for genetic studies.
There are 0, 1 or 2 minor alleles and 3 would represent missing.)
It is theoretically possible
2006 Mar 15
1
How to get correct proportions/bounding box for latex figure?
Hello,
I recently posted a question about my troubles with
importing
a lattice/trellis figure into latex.
To recap,
The figure contains 3 scatterplots, so it should have
roughly a 1:3 sort
of aspect ratio, in order to make each of the
scatterplots square.
Instead, the whole figure comes out roughly square, so
each scatterplot
is badly stretched. I fixed this by adding aspect=1/1
to the
2010 Sep 20
2
invalid 'row.names' length error when running scatterplots or plot in R Commander
Hello,
I teach statistics and use R Commander for teaching. I have 2 students
out of 169 that can't get scatterplots or plot to work. I have had them
update packages, restart R/R Commander/their computers and even
reinstall R/R Commander. One is using Windows 7 on a new pc and the
other is a pc user (not sure the OS). They are both using R2.11.1 and R
Commander 1.6-0.
The data look like