Displaying 12 results from an estimated 12 matches for "cars93".
2010 Jul 08
4
Duda con orden Cars93
Cordial saludo,
Estoy haciendo una grafica de la base de datos Cars93 conde relaciono
Manufacturer con Price con este codigo
library(MASS)
with(Cars93,plot(Manufacturer, Price, las=2, ylab="Precio (en $1,000)"))
necesito el comando para que queden ordenados de manera ascendente como en
la grafica 2, muchas gracias por su ayuda
Grafica 1
[image: M-P.JP...
2009 Jul 31
1
help in using gsub and ?
Hi all,
I would like to strip the R prompt from a series of code lines and copy the resulting text into a R script. For example, consider the following :
#####
str1<-"
> library(MASS)
> data(Cars93)
> attach(Cars93)
> imosaic(data.frame(AirBags,Cylinders,Origin))"
str2<-gsub('>','',str1)
######
This gives, as expected .?
> str2
[1] "\n library(MASS)\n data(Cars93)\n attach(Cars93)\n imosaic(data.frame(AirBags,Cylinders,Origin))"
How can I now act...
2004 Feb 10
1
make check in 1.8.1.
...mucked things up, but that's another story).
Anyhow, when I ran ``make check'' I got an error right toward the
end. Looking in the directory ``tests'' I found that the error was
associated with the file reg-tests-3.R, and the complaint was that it
couldn't find the object Cars93 from the MASS package.
So I edited reg-tests-3.R and stuck in the line ``data(Cars93)'':
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
## lm.influence where hat[1] == 1
if(require(MASS)) {
#
data(Cars93) # <------------------------- INSERTED LINE
#...
2001 Sep 08
2
Basic SPSS commands in R ?
Hello,
i'm newbie of R and think it is a really good alternative to SPSS.
But i have more problems using elementary things comparable with using advanced methods.
(1) How can i value label i.e the variable X in data.frame DATA
with the labels ( 1=very good ) (2=good).
spss syntax when DATA is in Spreadsheet is:
value labels X
1 'very good'.
2 'good'.
execute.
(2) How can i
2009 Feb 21
0
Bold fonts and greek characters in lattice plots
Hi,
I am trying to "convince" lattice to use bold face in an expression containing Greek characters without any luck.
Example code (without Greek characters, renders the expression in bold)
library(lattice)
data(Cars93,package=="MASS")
splom(~Cars93[,5:8]|Origin,data=Cars93,panel=function(x,y,...) {
panel.splom(x,y,...)
dum<-format(cor(x,y,use="complete",method="kendal"),dig=2)
panel.text(30,40,bquote(.(dum)),font=2)
},pscales=0,col="gray"
)
Example code (with Greek ch...
2013 Jul 25
1
GGplot 2 – cannot get histogram and box plot axis to match.
...k.rstudio.com/jclow/Archive20130725HistogramApp/
To run the app, select ?Use Sample Data? , then select ?MPG.city? under choose a column, then finally select box plot.
Sample code:
Below is a snippet of my code to demonstrate the problems I have.
library(ggplot2)
#sample data from ggplot2
data(Cars93, package = "MASS")
dataSet <- Cars93
#variables to calculate the range to extend the axis
dataVector <- unlist(dataSet[,"MPG.city"])
dataRange <- max(dataVector) - min(dataVector)
graphRange <- c(min(dataVector) - dataRange/5,
max(dataVector) + da...
2008 Nov 25
1
row labels in heatmap.2(package gplots)
Dear R users,
I have a question regarding how to make row labels readable in a heat map.
I have successfully made a heat map using function "heatmap.2" in the package "gplots". However, as there are many rows in the heat map, I have difficulties labeling them (heatmap.2 provides a parameter "labRow" to label the row names, but as I have too many rows, I can not make
2000 Apr 26
2
plotting question
I would like to plot two different samples on the same scatterplot in R
using different symbols for the different groups.
Could someone please let me know how this can be done? Thank you very much.
Thad
*****************************************************************************
Thaddeus Tarpey Phone: (937) 775-2861
Wright State University
2005 Jul 07
1
Tables: Invitation to make a collective package
...tbl=tb.table(iris, k=5)
print(tbl)
levels(iris$Species)
tbl=tb.table(iris, k=5, by='Species')
length(tbl)
names(tbl)
print(tbl)
tbl=tb.table(iris, k=5, by='Species', right=T)
print(tbl)
tbl=tb.table(iris, breaks='FD', by='Species')
print(tbl)
library(MASS)
levels(Cars93$Origin)
tbl=tb.table(Cars93, k=5, by='Origin')
names(tbl)
print(tbl)
tbl=tb.table(Cars93, breaks='FD', by='Origin')
print(tbl)
I find that this package would be very useful and would like to hear the opinion
of the interested parties in participating.
Best regards,
--
J...
2000 Jun 13
1
problem with aperm? (PR#568)
R version 1.0.1
OS RedHat Linux 6.1
In attempting to test for numeric vectors in a data frame, I tried:
apply(dataframe,2,is.numeric)
and found that it returned FALSE for all vectors whether they were
numeric or not. I tracked this to the fact that as.array() was
converting the data frame to character vectors, and thought I could
solve it by using array(), which preserved the mode of the
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
...was my first thought). I am not having
problems building other packages.
Any thoughts?
* creating vignettes ... ERROR
Error in namespaceExport(ns, exports) : undefined exports: abbey,
accdeaths, Aids2, Animals, anorexia, austres, bacteria, beav1, beav2,
biopsy, birthwt, Boston, cabbages, caith, Cars93, cats, cement, chem,
coop, cpus, crabs, Cushings, DDT, deaths, drivers, eagles, epil, farms,
fdeaths, fgl,
forbes, GAGurine, galaxies, gehan, genotype, geyser, gilgais, hills,
housing, immer, Insurance, leuk, lh, mammals, MASS.data.load, mcycle,
mdeaths, Melanoma, menarche, michelson, minn38, motor...
2003 Nov 23
3
make check reg-tests-3
...325 3.600828 3.569987 3.592482 3.599979 3.580547 3.600799 3.599768
73 74 75 76 77 78 79 80
@@ -432,44 +433,57 @@
Potentially influential observations of
lm(formula = 1000/MPG.city ~ Weight + Cylinders + Type + EngineSize + DriveTrain, data = Cars93) :
- dfb.1_ dfb.Wght dfb.Cyl4 dfb.Cyl5 dfb.Cyl6 dfb.Cyl8 dfb.Cyln dfb.TypL
-8 -0.16 0.00 -0.10 -0.07 -0.24 -0.44 0.01 0.12
-19 -0.03 0.09 -0.01 -0.03 0.00 -0.01 -0.03 0.08
-28 0.11 -0.15 0.04 0.02 0.02 0.02 0.04 0.07
-39 -0.1...