[R] xyplot, the first tick mark starts from 2 rather than 1, and also there is a NA as the final tick mark.

2008-10-30 Thread Dr. Alireza Zolfaghari
I am trying to plot some data, but have got some difficulties with labels on the tick marks on the x-axes. There are 20 data points. All I want to do is to plot the Loss versus Lines. When I use xyplot, the first tick mark starts from 2 rather than 1, and also there is a NA as the final tick mark.

[R] How to create margin area around a graphic made by xyplot

2008-11-04 Thread Dr. Alireza Zolfaghari
Hi list, Does any body know how I can create a margin area around the graphic created by xyplot (the same thing we do using par in plot function)? I tried viewport, but does not work. Here is the code: == require(grid) vp<- viewport(x=.1,y=.1,width=.6,h

[R] Linear regression

2008-11-12 Thread Dr. Alireza Zolfaghari
Hi List, Does anybody know what function I need to use for a simple regression? Here is the data: I want to find the value for x1=3.5 data<-data.frame(x=c(1:30),Value=c(31:60)) x1<-3.5 Regards, Alireza [[alternative HTML version deleted]] __ R

[R] Date conversion

2008-11-13 Thread Dr. Alireza Zolfaghari
Hi List, If I have a date format as: d <- "2001/1/1" I can easily convert it to number by using as.Date(d). But if I have d<-"1/1/2001", it does not work. Does anyone know how I can convert it using pre-written function in R? Regards, Alireza [[alternative HTML version deleted]] ___

[R] Second y-axis

2008-11-26 Thread Dr. Alireza Zolfaghari
Hi list, In the following code, how can I place the percentage label away from numbers in the second y-axis (lets say all should be inside plot area)? Thanks Alireza = require(grid) vp<- viewport(x=.1,y=.1,width=.6,height=.6,just=c("left", "bottom")) pushViewport(vp) plotDATA=data

[R] How can I create transparant colour

2008-12-04 Thread Dr. Alireza Zolfaghari
Hi list, Does any one know how I can make the red colour transparant? # par() #Set up blank plot to remove plot border type lty="n" xvalue1<- c(1,2,2,1) xvalue2<- c(1,3,3,1) yvalue1<- c(0,0,22,22) yvalue2<- c(0,0,44,44) plot(c(min(xvalue2),max(xvalue2)),c(min(yvalue2),max(y

[R] plotting on map

2009-03-02 Thread Dr. Alireza Zolfaghari
Hi list, I want to plot state Texas using map function. I wrote the following code to plot the grid boundary for Texas: library(maps) require("mapproj") longlatLimit<-c(-106.65, -93.53 , 25.93 , 36.49) par(plt=c(0,1,0,1),cex=1,cex.main=1) #Set plotti

[R] R-help

2009-03-02 Thread Dr. Alireza Zolfaghari
Hi list, When I type my question in R console using ? sign (example: ?par, when I want to query for par), the following error message popps up: Error in print.help_files_with_topic("C:/PROGRA~1/R/R-24~1.1/library/maps/chm/map") : CHM file could not be displayed I appreciate if any body c

[R] Map

2009-03-04 Thread Dr. Alireza Zolfaghari
Hi list, I dont know why the top of map gets truncated: I appreciate if any one give me a solution. filename="C:\\temp\\test.pdf" pdf(file=filename, width=15, height=10) library(maps) require("mapproj") longlatLimit<-c(-106.65, -93.53 , 25.93 , 36.49) par(plt=c(0,1,0,1),cex=1,cex.main=1) #Set

[R] Problem in Map function

2009-03-06 Thread Dr. Alireza Zolfaghari
Hi list, I have a real problem with plotting US state map. When I try to plot the northern state, there will be some blank space in the top of graph (see case 1 example), and when I plot southern states, there will be a blank space in the bottom of plot (see case 2). I spent almost 2 days to figure

[R] Map using projection

2009-03-12 Thread Dr. Alireza Zolfaghari
Hi list, I have a real problem with plotting US state map. When I try to plot the northern state, there will be some blank space in the top of graph (see case 1 example), and when I plot southern states, there will be a blank space in the bottom of plot (see case 2). I spent almost 2 days to figure

Re: [R] Map using projection

2009-03-17 Thread Dr. Alireza Zolfaghari
Thanks Ray On Thu, Mar 12, 2009 at 11:01 PM, Dr. Alireza Zolfaghari < ali.zolfagh...@gmail.com> wrote: > Hi list, > I have a real problem with plotting US state map. When I try to plot the > northern state, there will be some blank space in the top of graph (see case > 1 example

[R] beta

2009-05-06 Thread Dr. Alireza Zolfaghari
Hi List Can you tell me how I can get the probability of L>=2.5 when the mean is 5.5 and á = 2.28409 and â = 6.09091? using beta function indeed? regards, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et