similar to: Adding Lines to Plot

Displaying 20 results from an estimated 10000 matches similar to: "Adding Lines to Plot"

2006 Jul 17
3
Correlation Mapping
On the cover of Zivot and Wang's Modeling Financial Time Series with S Plus, there is a correlation plot that seems to indicate the strength of correlation with color-coded squares, so that more highly correlated stocks appear darker red. If anybody out there is familiar with the book or understands what I am talking about, I am curious as to whether or not there is a similar function in R
2006 Jun 23
3
Interpreting as.factor
When I run a linear regression and include a variable in the regression with as.factor i.e. lm(y ~x +as.factor(x1) and i read the output as as.factor(x1)1.... as.factor(x1)2... etc. how do i interpret the estimate for each level? Is this simply to be regarded as a shift in the equation predicted by the intercept and independent variable x? jdr -- Justin Rapp 409 S. 22nd St. Apt. 1
2006 Jul 09
1
KS Test Warning Message
All, Happy World Cup and Wimbledon. This morning finds me with the first of my many daily questions. I am running a ks.test on residuals obtained from a regression model. I use this code: > ks.test(Year5.lm$residuals,pnorm) and obtain this output One-sample Kolmogorov-Smirnov test data: Year5.lm$residuals D = 0.7196, p-value < 2.2e-16 alternative hypothesis: two.sided Warning
2003 Jan 17
2
barplot plotting problem
Hi, Is there any equivalent of type="n" when constructing barplots which will still construct the axes (plot=F, as it says doesn' plot anything at all). Alternatively I tried setting col="white" and border="white" but the border command does not seem to be operational. True?? Any other ideas? What I'm actually trying to do is construct vertical abline()'s
2006 Jul 09
1
Error Calculating Mean
I have a vector containing players' weights. When I enter mode(data.linear$Weight) "numeric" is returned. When I type mean(data.linear$Weight) NA is returned. Any ideas as to why this may be the case? I am trying to calculate this ultimately so I can superimpose a normal density line over a histogram containing the weights?
2017 Jun 14
2
Plot MArginal distribution in the correct place
Please can you send me some orientation? Many thanks in advance. Only if posible one book o similar example to understand why it is not what I try. El 8 jun. 2017 7:50 PM, "Pedro p?ramo" <percentil101 at gmail.com> escribi?: > Many thanks Jim. > > What I,m trying to show with the fhist plot is the empirical distribution > of the values of the left plot simulation.
2003 Aug 07
1
abline() plot order
I am performing this sequence barplot title legend abline When abline renders the lines they appare to be in the layer above the bars in the graph. Is there a way to make them render first or 'behind' the bars? Thanks.
2017 Jun 08
0
Plot MArginal distribution in the correct place
Many thanks Jim. What I,m trying to show with the fhist plot is the empirical distribution of the values of the left plot simulation. You say: However, I don't think that this plot illustrates quite what you think it does. Can you give me a clue to try to illustrate better if it is not showing what I believe it shows a better way to show it? Many thanks in advance. El 7 jun. 2017
2012 Feb 20
3
Run function several times changing only one argument - without a loop
Dear people, I created a plot which looks like this: Ee1<-matrix(c(88,86,74,62,41),ncol=5) colnames(Ee1)<-c("Lehrer","Lehrerinnen","Klassenkollegen","Klassenkolleginnen","Geschwister") par(las=1) par(mar=c(5,13,4,2)) barplot(Ee1,horiz=T,col="grey85",border="NA",xlim=c(0,100),axes=F) axis(2,pos=10, tick=T, tcl=F,
2012 May 09
1
white lines in barplot
Dear R-helpers, I would like to draw white lines in my barplots to improve the visualization. I include an example: barplot(sample(1:100,15),width=0.59,horiz=T,col="steelblue",border="NA",axes=F,ylim=c(0,10),xlim=c(0,100)) abline(v = seq(10, zehnind, by = 10), col = "white") axis(1,at=ticks,las=1,labels=paste(ticks,"%",sep="")) my problem is,
2012 Oct 05
1
avoid <<- in specific case
Hi all, I improved a function drawing horizontal histograms (code below) which uses barplot and works fine. It does,however, need to assign a function to the global environment to later find the actual location on the vertical axis, and not the number of bars used by barplot. Hopefully, running the examples below will illustrate that. As said, it works perfectly fine and does exactly what I
2012 Sep 03
3
Horizontal grid in background of barplot
All, I have: x <- matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE) rownames(x) <- c("Cold or flu","Headache","Backache"); colnames(x) <- c("Went to doctor","No response","Did nothing","Self-medicated") x <- t(x) print(x) barplot(x,beside=TRUE, ylim=c(0,90), xlab="Ailment",
2006 Oct 02
5
Barplot
Hello, I have used the following data to draw my barplot: BL LR Q 36.35 1.00 1.92 36.91 4.00 0.00 25.70 6.00 0.00 34.38 3.00 1.92 05.32 0.50 0.00 BL<-c(36.35, 36.91, 25.70, 34.38, 05.32) LR<-c(1.00, 4.00, 6.00, 3.00, 0.50) Q<-<(1.92, 0.00, 0.00, 1.92, 0.00) barplot(dt$LR, main='LR Value', col='orange', border='black',
2008 Sep 25
1
grid.newpage()
Hi, I'm trying to customize a window with 2 graphs. I'm able to do the first one with something like this general example par(mfrow=c(1,2),cex.axis=0.85,cex.lab=0.80,mai=c(1.3,1,0.5,0),las=3) bplot<-barplot(bar.values,names.arg=cf.names,width=0.5,ylab="% Area held") abline(h=0.3,lty=3,col="red") abline(h=0.1,lty=3,col="blue")
2009 Feb 22
3
line joining graphs
hi, I need to draw a line joining graphs,but abline stops within a graph.What do i do to cover portions between two graphs -- Rajesh.J [[alternative HTML version deleted]]
2017 Jun 14
0
Plot MArginal distribution in the correct place
Hi Pedro, If you keep that same margins for the second plot: par(mar=c(10,0,6,6)) barplot(fhist$counts,axes=FALSE, space=0,horiz=TRUE,col="lightgray") it looks reasonably well aligned to me. Because you are plotting the counts of the values in Simulation, the ordinate (vertical axis) of the bar plot is in quite different units from that of the plot on the left side. Jim On Wed, Jun
2012 Aug 01
2
How to increase lenght of axis according input data?
Hi, I am working on barplot. I need to plot x-axis but scale on x axis is very upto 15 while my data is upto 19. pdf("image.pdf", width=10 , height =13) par(mar=c(5,22.5,2,2)) barplot(t(data[,2:3]), beside=TRUE, col=c(rgb(.537, .769, .933),rgb(.059, .412, .659)), width = 1, horiz=TRUE,cex.names=.9, border ="white",las=1, cex.axis= 1, cex.lab=1.2)
2004 Nov 28
1
Modifications to an abline
Dear List: I am working to generate graphs for individual students that will be created through a series of loops in Sweave. Before doing so, I am still trying to design the graph. The code for creating the barplot is below with some sample datapoints just made up for now. Ultimately, this chart will take data from an lme object using longitudinal student data. So, the dots represent the
2016 Sep 06
2
Gráfico de Barras
Hola. Siguiendo a Mittal (2001); R Graph Cookbook creo haber logrado construir el gráfico de barras que buscada. La matriz que utilizo para el "height" va adjunta. Y mi sintaxis: barplot(t(barras), col=col.segmentos, border=F , names.arg=Meses, las=2, cex=.75, cex.axis=0.8 , ylab="% del Segmento sobre el Total") legend(.5, .2, ncol=5, cex=.75,
2009 Sep 03
1
putting reference lines or grids into the background of a plot
Dear R-community, using R.2.9.1, how do you put reference lines or grids into the _background_ of a plot? For example: barplot(3:1) abline(h = seq(0.5, 2.5 ,0.5), col = "red", lty = "dashed") -> The lines are before the bars (and the line parts going through the bars might be considered as "chart junk", I suppose). Now, in this toy example I could just do the