I have a 5.76" x 5.75" png image which I would like to crop to some inch
size. To use as a report header (after placing some title text on it).
So how to use R to crop a nice rectangle from my image?
Thanks for your thoughts
Jim Burke
[[alternative HTML versi
rid of that NA?
2 2904 Open Seat 1015
3 2905 Open Seat 71 202 497
NA 2903 Open Seat227 245 2035
Thanks,
Jim Burke
[[alternative HTML version deleted]]
___
Setup for the OSM Map is below
ul <- as.vector(cbind(bbox(all_pcts_osm_sp) [2,2], bbox(all_pcts_osm_sp)
[1,1]))
lr <- as.vector(cbind(bbox(all_pcts_osm_sp) [2,1], bbox(all_pcts_osm_sp)
[1,2]))
map_types <- c("osm", "maptoolkit-topo", "waze", "mapquest",
"mapquest-aerial",
"bing", "s
]@labpt[[1]],
all_pcts_osm_sp[i,]@polygons[[ 1 ]]@labpt[[2]] - (hght * 1.5 *
seq(length(MyLines))),
do.call(expression, MyLines))
}
All your comments, ideas, and thoughts are appreciated.
Thanks
Jim Burke
[[alternative HTML version deleted]]
_
th "R" does not appear to delve into
"aggerate". Basic simple and useful fully explained answers. If you have to
use "apply" then explain why.
Thanks
Jim Burke
[[alternative HTML version deleted]]
__
R-help@r-pr
PROBLEM How can I concatenate the following lists into ONE LIST WITHOUT
the unhelpful message "operator is invalid for atomic vectors"? Combine
as a data frame?
EXAMPLE
Birth_Date <- NULL
Birth_Date[1:3] <- c("01/17/1939","01/17/1949", "01/17/1959")
Later_Date <- NULL
Later_Date[1:3
## See
?xyplot
?as.layer
?hist # for info about histograms
HTH,
Josh
On Sun, Jan 9, 2011 at 5:13 PM, Jim Burke wrote:
Hello everyone,
I have a simple histogram of gasoline prices going back a few years that I
want to insert a line graph of consumer price index (cpi) over the
histogram.
= gas_data,
type = c("g", "h" ))
Thanks,
Jim Burke
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
My two lists look like below
Need an R code example that
combines the two.
l_one
"key"
2
1
2
l_two
"ndx", "descr"
1, "this"
2, "that"
3, "other"
4, "finis"
My goal is a new list that looks
like below.
ndx descr
2 that
1 this
2 that
Thanks,
Jim
__
Never mind, thanks
Jim Burke wrote:
Hi everyone,
Using R 2.10.1 on Windows Vista.
DOWNLOADED PACKAGES DO NOT INSTALL. I expect to see them in C:\Program
Files\R\R-2.10.1\library These files download (see below). And they
are all in zip format. What am I doing wrong? Please help. All
ps' successfully unpacked and MD5 sums checked
package 'MEMSS' successfully unpacked and MD5 sums checked
package 'mlmRev' successfully unpacked and MD5 sums checked
package 'RColorBrewer' successfully unpacked and MD5 sums checked
The downloaded packages are in
Perhaps the One R Tip a Day might be helpful.
The first part of this example saves a png file.
http://onertipaday.blogspot.com/2009/01/statistical-visualizations-part-2.html
Good luck,
Jim
RagingJim wrote:
Thanks mate, will get the zoo package ASAP. I have been working on the file
open/save pa
Anna,
I think the else needs to be on the same line
as the curly bracket like this "} else".
P1 <- 1
P2 <- 2
if( P2 > P1)
{
P<-P2
} else
{
P<-P1
}
Good luck,
Jim
anna_l wrote:
Hello, I am getting an error with the following code:
if( P2 > P1)
+ {
+ P<-P2
+ }
else
Erro: unexpe
To clarify.
Lets turn a date into an age. Given 05/29/1971 in mm/dd/
format. What is the year difference between then and today?
This would be the "age" requested that starts 05/29/1971 as
one.
Thanks,
Jim
David Winsemius wrote:
>
> On Nov 8, 2009, at 3:11 PM, frenchcr wrote:
>
>>
>>
>> w
I think your are using R 2.10.0.
I get similar messages when I have too many resources in use. Like FireFox
eating memory and CPU.
When you get this message go look in your R installation "library"
subdirectory.
You will see a weird number as a folder name. Under that folder is the
package you
I have a statement like below.
my_num <-
c("101","102","103","104","105","107","108","112","113","114","115")
"my_df" has 8,000 different STREPS in it.
I have a statement where I can select ONE item from data frame "my_df"
txhd_df <- prec_dist_df[ my_df$STREP=="101", c("COUNTY", "FIPS",
"STS
;STREP", "PREC")]
should do the trick. See
?match
for details.
On Thu, Oct 29, 2009 at 1:53 AM, Jim Burke wrote:
I have searched help topics but don't know exactly what to search for.
Need to use my_num to find any matching STREPs in my_df
my_num <-
c("101",
I have searched help topics but don't know exactly what to search for.
Need to use my_num to find any matching STREPs in my_df
my_num <-
c("101","102","103","104","105","107","108","112","113","114","115")
## "my_df" has 8,000 different STREPS in it.
## I have a statement where I can select
18 matches
Mail list logo