Displaying 6 results from an estimated 6 matches for "newrange".
2003 Aug 15
0
Re: [R} stars graphs
...ot that starts 
at the right and goes counterclockwise or a 24 hour clock plot that starts 
at the top and goes clockwise. There are probably other varieties that 
would be interesting.
Jim
-------------- next part --------------
# scales a vector of numbers to a new range
rescale<-function(x,newrange) {
 if(is.numeric(x) && is.numeric(newrange)) {
  xrange<-range(x)
  if(xrange[1] == xrange[2]) stop("rescale: can't rescale a constant vector!")
  mfac<-(newrange[2]-newrange[1])/(xrange[2]-xrange[1])
  invisible(newrange[1]+(x-xrange[1])*mfac)
 }
 else {
  cat("Us...
2003 Aug 13
1
stars graphs
Hi listers,
A few days ago I posted a question about the use of the stars function
on selected lines of a frame. Thanks to two helpers, a closer look at
the scale argument allowed to partially solve the problem. Yet I still
have a problem with stars.
Allow me to explain what I intend to do (sorry for my poor English and
the long post):
I want to graph an activity index of a fish during the day
2005 Jun 22
2
A polar.plot BUG in plotrix 1.3.3 ?
...lap
  if(missing(polar.pos)) polar.pos<-seq(0,360-360/(npos+1),length=npos)
  if(missing(labels)) {
   label.pos<-seq(0,340,by=20)
   labels<-as.character(label.pos)
   label.range<-c(0,pi*340/180)
  }
  if(missing(label.pos)) label.pos<-polar.pos
  polar.range<-range(polar.pos)
  newrange<-c(pi*polar.range[1]/180,pi*(2-(360-polar.range[2])/180))
  # rescale to radians
  radial.pos<-rescale(c(polar.pos,polar.range),newrange)[1:npos]
  nlabels<-length(labels)
  label.pos<-rescale(c(label.pos,0,360),c(0,2*pi))[1:nlabels]
radial.plot(lengths,radial.pos,newrange,labels,label...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
..., GFP_KERNEL);
 		if (!newbus) {
-			err ("out of system memory.\n");
+			pr_err("out of system memory\n");
 			return -ENOMEM;
 		}
 		newbus->busno = curr->bus_num;
@@ -123,7 +125,7 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node
 	if (!newrange) {
 		if (first_bus)
 			kfree (newbus);
-		err ("out of system memory\n");
+		pr_err("out of system memory\n");
 		return -ENOMEM;
 	}
 	newrange->start = curr->start_addr;
@@ -134,7 +136,8 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
..., GFP_KERNEL);
 		if (!newbus) {
-			err ("out of system memory.\n");
+			pr_err("out of system memory\n");
 			return -ENOMEM;
 		}
 		newbus->busno = curr->bus_num;
@@ -123,7 +125,7 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node
 	if (!newrange) {
 		if (first_bus)
 			kfree (newbus);
-		err ("out of system memory\n");
+		pr_err("out of system memory\n");
 		return -ENOMEM;
 	}
 	newrange->start = curr->start_addr;
@@ -134,7 +136,8 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
..., GFP_KERNEL);
 		if (!newbus) {
-			err ("out of system memory.\n");
+			pr_err("out of system memory\n");
 			return -ENOMEM;
 		}
 		newbus->busno = curr->bus_num;
@@ -123,7 +125,7 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node
 	if (!newrange) {
 		if (first_bus)
 			kfree (newbus);
-		err ("out of system memory\n");
+		pr_err("out of system memory\n");
 		return -ENOMEM;
 	}
 	newrange->start = curr->start_addr;
@@ -134,7 +136,8 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node...