similar to: xlim/ylim problem

Displaying 11 results from an estimated 11 matches similar to: "xlim/ylim problem"

2010 Feb 25
1
Updating a hexbinplot
Dear all, Considering this simple example of hexbinplot: mixdata <- data.frame(x = c(rnorm(5000), rnorm(5000,4,1.5)), y = c(rnorm(5000), rnorm(5000,2,3)), a = gl(2, 5000)) fig <- hexbinplot(y ~ x | a, mixdata) print(fig) update(fig, colramp = BTC) produces a bad (non-updated) legend. Compare it with: hexbinplot(y ~ x | a, mixdata, colramp = BTC) What
2008 Aug 14
1
Graphing: plot 3rd variable based on color gradient
Hello, I am searching for the best method to plot two variables with points whose output color depends on the size of a third variable. For example, the darkness of the x-y point would increase incrementally based on the size of the z value, similar to the colramp parameter in geneplotter. This would be analagous to symbols(), except changing the selection from the color gradient rather than the
2010 Nov 19
1
Color Alaska in USA map
Hello: I have a problem when I tried to color the USA map with different colors. The following is my data (I only used the second column of data): alaska, 1, 2 Hawaii, 0, 0 USA, 5, 5 And here is my code: library("latticeExtra") library("mapproj") state<-read.table("C:\\usaclass.txt",sep=",") state
2010 Jul 08
1
Brewer.pal error
Hi all, I have 35 years, I have been working since I exit from University. I have returned to make a phd...I´m fortunatelly I´m working so unfortunatelly I have few time to study (I have also a baby with 16 months). I´m trying to use R but sometimes it gets very difficult. I´m trying to put this code in my polygon function colramp=colorRampPalette(brewer.pal(9,"YlOrRd") to use
2008 Mar 14
1
smoothScatter
Hi, I have been trying to plot density plots using the example on: http://addictedtor.free.fr/graphiques/graphcode.php?graph=139 I used to use this function, but I cannot get any old code or even the example to work. library("geneplotter") require("RColorBrewer") x1 <- matrix(rnorm(1e4), ncol=2) x2 <- matrix(rnorm(1e4, mean=3, sd=1.5), ncol=2) x <-
2008 Sep 22
1
SmoothScatter plot range issue
Hello, I am attempting to use smoothScatter to plot a heatmap of locations of events in an x-y axis. When I plot the heatmap without passing xlim and ylim parameters, it fills the plot area but the perspective is a bit skewed. I would like to standardize these plots to a uniform window size that does not depend on the range of values in the dataframe. However, when I resize the plot using xlim or
2012 Mar 18
1
problem saving gplot.hexbin using file save as pdf - "Error: invalid graphics state
I can save to png, TIFF and jpg but get an error "Error: invalid graphics state" when trying to save as pdf and I have to restart R. This happens when I add mtext lines. There are a few other questions e.g. I want to move the mtext on side 1 to the left, but that is the main issue for now. I'm not using the ylab inside gplot.hexbin because it writes over the numbers on the axis.
2011 Jun 10
1
smoothScatter function question and adding a legend
Hello, I have a few questions, regarding the smoothScatter function. I have a scatter plot with more than 500,000 data points for two samples. So, I am wanting to display the density in colors to convince people that my good correlation coefficient is not due to an "influential point effect" and plus, I also want to make my scatter plot look pretty. Anyway ... I have been able to
2011 Dec 22
1
overlaid filled contour plots
I'm trying to make a set of contour plots of bivariate kernel density estimates, showing three such plots overlaid, similar to this plot http://euclid.psych.yorku.ca/SCS/Private/Test/ridge-boot2.pdf except that I would like to have the contours *filled* (using transparent colors). To make this reproducible, I've saved the results of KernSmooth::bkde2D() in the following file:
2012 Jun 13
0
Determining Legend for smoothScatter
Dear all, I am using the smoothScatter function in base R for a plot - Lab.palette.both <- colorRampPalette(c("darkblue","lightblue","red","yellow"), space = "Lab") smoothScatter(X24fresh.sorted[,c(13,10)], colramp = Lab.palette.both) I understand that my yellow colored points represent highest density, red lower, lightblue even lower etc.
2010 May 14
2
help color coding map in R
I am trying to create a map with selected states based on highest to lowest mean cost. The following code properly selects the correct states, and the legend is properly color coded with ranges, but the colors per range does not match the state colors. I need help getting the state colors to match the ranges outlined in the legend. I have tried ordering the mean amounts and this correctly creates