similar to: Remove spacing at the top and bottom of a plot

Displaying 20 results from an estimated 3000 matches similar to: "Remove spacing at the top and bottom of a plot"

2017 Sep 24
3
Shift the normal curve to the top or near to the top of the histogram
Dear All: One more thing. I want to add the normal curve to the histogram. Is there away to stretch the peak of the curve to the top of the histogram or at least near to the top of the histogram. Please see the code below. Lizard.tail.lengths <- c(6.2, 6.6, 7.1, 7.4, 7.6, 7.9, 8, 8.3, 8.4, 8.5, 8.6,8.8, 8.8, 9.1, 9.2, 9.4, 9.4, 9.7, 9.9, 10.2, 10.4, 10.8,11.3, 11.9) x<-seq(5,12, 0.001)
2017 Sep 24
0
Remove spacing at the top and bottom of a plot
The default margins are set as lines below, left, top, and right using mar=c(5.1, 4.1, 4.1, 2.1). Just change the top margin something like 1.1: par(mfrow=c(1,2), mar=c(5.1, 4.1, 1.1, 2.1)) --------------------------- David L. Carlson Department of Anthropology Texas A&M University -----Original Message----- From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of AbouEl-Makarim
2017 Sep 25
0
Shift the normal curve to the top or near to the top of the histogram
Hi Abou, Try this: library(plotrix) curve(rescale(dnorm(x ,mean=mean(Lizard.tail.lengths),sd=sd(Lizard.tail.lengths)), c(0,6)),add=TRUE, col=2, lwd = 2) Jim On Mon, Sep 25, 2017 at 9:35 AM, AbouEl-Makarim Aboueissa <abouelmakarim1962 at gmail.com> wrote: > Dear All: > > One more thing. > > I want to add the normal curve to the histogram. Is there away to stretch > the
2017 Sep 12
2
Load R data files
Dear All: It was saved, but there was a space somewhere. So it works for me now. I do have another similar problem. I saved an R data file save(datahs0csv,file=" F:\Fall_2017\5-STA574\2-Notes\1-R\1-R_new\chapter4-Entering_Data/datahs0csv2 .rda") *The new R data file "*datahs0csv2.rda*" is in the directory.* I tried to load the file "" to R, but I got an error
2017 Sep 19
3
Graph f(x) = 1/x
Dear All: good morning I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But I am getting an error message. Please see below. I am getting the error message: *Error in xy.coords(x, y, xlabel, ylabel, log) : * * 'x' and 'y' lengths differ* x x <- seq(-5, 5, 0.01) y < 1/x plot(x,y, type='l', xlim=c(-5, 5), ylim=c(-5, 5), xlab = "x",
2017 Sep 12
3
Load R data files
Dear All: I am trying to load an R data set, but I got the following message. Please see below. The file is there. setwd("F:/Fall_2017/5-STA574/2-Notes/1-R/1-R_new/chapter4-Entering_Data") datahs0csv <- read.table("hs0.csv", header=T, sep=",") attach(datahs0csv) detach(datahs0csv) rm(list=ls()) Then I tried to reload the data, but I got this error message. I
2017 Aug 16
3
Install package "diagram"
Dear All: I am trying to install the package "diagram". It is in the list. But when I selected the package to install it, it says: Question: "would you like to use a personal library instead?" I selected No. Then it says > utils:::menuInstallPkgs() Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) : 'lib = "C:/Program
2017 Sep 12
0
Load R data files
The object you load has the same name as the object you saved. In this case datahs0csv and not the name of the file sans .rda On Di., 12. Sep. 2017, 21:26 AbouEl-Makarim Aboueissa < abouelmakarim1962 at gmail.com> wrote: > Dear All: > > > It was saved, but there was a space somewhere. So it works for me now. > > I do have another similar problem. > > I saved an R
2017 Sep 20
2
Install the Package "ISwR"
Dear All: good morning I am trying to install the "" package, but I am getting this error message. *> utils:::menuInstallPkgs()* *Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :* * 'lib = "C:/Program Files/R/R-3.4.1/library"' is not writable* *Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) : *
2017 Dec 17
4
Auto Data in the ISLR Package
myAuto <- Auto[ grep("ford|toyota",Auto$name),] On Sat, Dec 16, 2017 at 10:28 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > I did not care to load the packages -- small reproducible examples are > preferable, as the posting guide suggests. > > But, if I have understood correctly: > > See, e.g. ?subset > > Alternatively, you can read up on
2017 Dec 17
1
Auto Data in the ISLR Package
myAuto <- Auto[ grep("ford|toyota",Auto$name),] myAuto$Make <- NA myAuto$Make[grep("ford",myAuto$name)] <- "Ford" myAuto$Make[grep("toyota",myAuto$name)] <- "Toyota" Regards, Eric On Sun, Dec 17, 2017 at 11:58 AM, AbouEl-Makarim Aboueissa < abouelmakarim1962 at gmail.com> wrote: > Dear Eric: > > Thank you very much.
2017 Dec 29
2
Draw Overlapping Circles with shaded tracks
Dear All: I am wondering if there is a way in R to draw these two circles with shaded tracks in both circles using R, and make both circles uncovered. I am trying to make it in MS words, but I could not. Your help will be highly appreciated. In my previous post I added the image of the two circles, but the post never published. I just thought to resent the post again without the image. with
2017 Sep 20
0
Install the Package "ISwR"
What if you answer 'Yes' ? On Wed, Sep 20, 2017 at 1:03 PM, AbouEl-Makarim Aboueissa < abouelmakarim1962 at gmail.com> wrote: > Dear All: good morning > > I am trying to install the "" package, but I am getting this error message. > > > *> utils:::menuInstallPkgs()* > *Warning in install.packages(NULL, .libPaths()[1L], dependencies = NA, type >
2017 Dec 17
0
Auto Data in the ISLR Package
Dear Eric: Thank you very much. It works nicely. *Just one more thing;* how to create a new variable (say, *Make*) with *Make = Ford* for the ford brand and *Make = T**oyota* for the toyota brand. Once again thank you all. abou ______________________ *AbouEl-Makarim Aboueissa, PhD* *Professor of Statistics* *Department of Mathematics and Statistics* *University of Southern Maine* On
2017 Sep 12
0
Load R data files
Hi Abou, You haven't saved the datahs0csv. When you are done manipulating datahs0csv you can use save(datahs0csv, file = 'datahs0csv.rda'). Then you should be able to load the data. HTH Ulrik On Tue, 12 Sep 2017, 20:46 AbouEl-Makarim Aboueissa < abouelmakarim1962 at gmail.com> wrote: > Dear All: > > I am trying to load an R data set, but I got the following message.
2017 Dec 16
2
Auto Data in the ISLR Package
Dear All: I would like to create a subset data set *with only* all Ford and all Toyota cars from the Auto data set in ISLR R Package. Thank you very much in advance. Please use the following code to see how is the data look like. install.packages("ISLR") library(ISLR) data(Auto) head(Auto) with many thanks abou ______________________ *AbouEl-Makarim Aboueissa, PhD* *Professor
2017 Sep 19
0
Graph f(x) = 1/x
On Tue, 19 Sep 2017, AbouEl-Makarim Aboueissa wrote: > Dear All: good morning > > I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But > I am getting an error message. Please see below. > > I am getting the error message: *Error in xy.coords(x, y, xlabel, ylabel, > log) : * > * 'x' and 'y' lengths differ* You have "y <
2018 Jan 10
1
svm --- type~.
Dear All: Just fixed where is the problem I am trying to use the R function "svm" with "type~." , but I got the following error message SVM.Model1 <- svm(type ~ ., data=my.data.x1x2y, *type='C-classification'*, kernel='linear',scale=FALSE) *Error in eval(predvars, data, env) : object 'type' not found* I am wondering if I should install a
2017 Sep 19
1
Graph f(x) = 1/x
Dear Zeileis: Thank you very much abou On Tue, Sep 19, 2017 at 4:13 AM, Achim Zeileis <Achim.Zeileis at uibk.ac.at> wrote: > > > On Tue, 19 Sep 2017, AbouEl-Makarim Aboueissa wrote: > > Dear All: good morning >> >> I am trying to graph the function y=f(x)=1/x over the interval (-5,5). But >> I am getting an error message. Please see below. >>
2017 Dec 31
2
Draw Overlapping Circles with shaded tracks
That code nees the plotrix package: library(plotrix) pdf("circles.pdf") plot(0:10,type="n",axes=FALSE,xlab="",ylab="") draw.circle(4,5,radius=3,border="#ff0000aa",lwd=10) draw.circle(6,5,radius=3,border="#0000ffaa",lwd=10) dev.off() On Friday, December 29, 2017, 6:06:32 PM EST, Jim Lemon <drjimlemon at gmail.com> wrote: