Displaying 20 results from an estimated 8000 matches similar to: "plot or boxplot!"
2005 Sep 24
5
plot, spineplot, boxplot in R 2.2.0
I noticed, what seened to me, to be odd. These produce
a boxplot in the first case and a spineplot in the second
case in R .2.2.0:
plot(Sepal.Length ~ Species, iris)
plot(Species ~ Sepal.Length, iris)
What if one wants to exchange axes? Does the fact that
this seemingly innocuous change result in completely
different graphics make sense? Is it desirable?
2010 Jul 07
3
Boxplots over a Scatterplot
Hello-
I'm new to R, coding and stats. (Oh no.)
Anyway, I have about 12000 data points in a data.frame (dealing with
dimensions and geological stage information for fossil protists) and have
plotted them in a basic scatter plot. I also added a boxplot to overlay
these points. Each worked fine independently, but when I attempt to
superimpose them with add=true, I get a different scale for
2006 Apr 24
2
boxplots instead of a scatterplot
Dear R list,
I am a newbie to R and programming itself, so my question may be easy to
answer for you.
I wanted to create a scatterplot and i used the following code:
par(mar=c(10, 4.1,4.1,2.1))
plot(q$location,q$points, , las=2, cex.axis=0.5,xlab="", ylab="" )
#location are character strings, there are about 70 locations
#points are numeric, there are more than 4 points for
2008 Feb 15
2
Controling width of boxes in boxplots
Hi,
I want to add boxplots to a scatterplot:
plot(x,y, xlim=c(80,120),ylim=c(80,120))
boxplot(y,add=TRUE,at=118)
boxplot(x,add=TRUE,at=118,horizontal=TRUE)
How can I control the width of the boxes (say, I'd like them to be of
width 3 in the variables' scales). I've tried the "width" parameter
but failed.
Thanks in advance,
Marcin
2009 Sep 17
2
SVM
Hello,
I have 12 sample each sample has got 1000 observation, i.e I have a matrix X with 1000 rows and 12 columns!
m <- svm(t(X))
p <- predict (m)
Can anyone tell me how to use svmtrain() in R!
Many Yhanks,
Samuel
[[alternative HTML version deleted]]
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).
2007 Sep 26
2
date
Hello,
I have got the following problem:
> setwd("C:/temp")
> library(xlsReadWrite)
> MyData <- read.xls(file="Mappe1.xls", colNames = TRUE,dateTimeAs = "isodatetime")
> attach(MyData)
> MyData
name value times
1 A1 2 2006-05-12
2 A2 3 2006-05-16
3 A3 1 2006-05-12
4 A4 4 2006-05-12
5 A5 2
2008 Mar 14
2
SAS data
Hello,
I am trying to read the SAS file MyData.sa7bdat in R! This file is saved under D:\data! I therefore wrote
> path <-"D:/SasData"
> sashome <- "C/Progra, Files/SAS Institute/9_1/SAS"
> sascmd <- file.path(sashome, "sas.exe")
> MyData <- read.ssd(path, "MyData", sascmd=sascmd)
The results what I get:
2011 Dec 09
1
Fixed! Thanks all:RE: scatterplot to boxplot translation?
Thanks to David and Jorge - both of your helpful suggestions got me to the desired endpoint. In case anyone else has this question: I boxplotted my y variable data, but did the "cut" operation on the x variable in order to conserve the order of the y data. I see another suggestion coming in from another user that basically says this.
So, my working line of code was:
boxplot(count$RPKM
2011 Dec 09
1
scatterplot to boxplot translation?
A non-text attachment was scrubbed...
Name: C_count_vs_RPKM.PNG
Type: image/png
Size: 16970 bytes
Desc: C_count_vs_RPKM.PNG
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111209/eeb32c30/attachment.png>
2009 Apr 26
4
Scatterplot of two groups side-by-side?
Dear all
I'm realy new to R, so I hope you can help me, as I didn't find any solution in the common books.
Since some days I'm trying to create the following plot: A scatterplott showning two different groups side-by-side with according regression lines. Both datasets only have the same five factors, so the scatters will form a kind of column at each factor. When I use
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
2007 Jul 03
2
Problems using imported data
(Repeat of previous HTML version)
Hello all,
I am a new R user and I have finally imported my data using
>read.delim("Filename.txt", header=TRUE) after some difficulty, by changing file directories (a hint to anyone who might be stuck there).
However, I am now stuck trying to use my data. When I try to use data.frame("filename.txt") it tells me object not found, which
2007 Sep 25
3
/boot partition or not on C5
hello,
the last 3 times I installed C5, the MBR was unchanged and nothing was written into /boot/grub except splash.xbm.gz
there were no stage* files, nor a menu.lst
I know how to fix that.
Would I have better luck using a partition mounted as /boot?
Anyone succeded with Grub that way? I prefer not having to do surgery to get C5 to boot :)
--
Mark
New Packages for C5
---------
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
I am running R version 2.15.1 in Windows XP
I am having problems with a function I'm trying to create to:
1. subset a data.frame based on function arguments (colname & parmname)
2. rename the PARMVALUE column in the data.frame based on function
argument (xvar)
3. generate charts
plotvar <- function(parentdf,colname, parmname,xvar,yvar ){
subdf <-
2007 Dec 14
3
Plot question
I have some data consisting of multiple trials of an experiment with
different values of an independent variable. If I run
R> plot(var,result)
I get a scatterplot of result versus the independent variable var.
If I run
R> plot(as.factor(var),result)
I get a boxplot of the distribution of result for each value of var. In
this plot, each boxplot is labeled by the corresponding value of
2011 Mar 13
3
how to change the margins of a plot area
Dear all,
I am ploting two boxplot of two chemical variables using the format
boxplot(Alkalinity, logAlkalinity, log="y", col=c("lightblue"), lwd=0.6, boxwex=0.3)
However when I plot like this, the distance between the two boxplots is very big and as well the distance of each boxplot from the plot area, left and right. How can I minimise that distance between the boxplots and
2010 Dec 08
1
UniCox in R
Hello,
I am interested in Figure 2 in
http://www-stat.stanford.edu/~tibs/ftp/cus.pdf
Can anyone tell please how to create this plot?
Many thanks
Samuel
[[alternative HTML version deleted]]
2010 Jun 21
1
glm
Hi,
I have the following data
data1 <- data.frame(count = c(0,1,1,2,4,5,13,16,14), weeks = 1:9,
treat=c(rep("1mg",3),rep("5mg",3),rep("10mg",3)))
and I am using
library(splines)
to fit
glm.m <- glm(count~bs(weeks)+as.factor(treat),family=poisson,data=data1)
and I am interested in predicting the count variale for the weeks 10, 11 and
2007 Oct 17
1
y_hat
Hello,
suppose one has the following values
x1 <- rnorm(10,5,1)
x2 <- rgamma(10,5,1)
y <- rnorm(10,4,1)
mydat <- data.frame(y,x1,x2)
then one can use glm like
mod <- glm(y~x1+x2, data=mydat, family=gaussian)
But how could I estimate y_hat?
Thanks alot!
Sam
---------------------------------
[[alternative HTML version deleted]]