similar to: about multi-optimal points

Displaying 20 results from an estimated 3000 matches similar to: "about multi-optimal points"

2017 Aug 26
0
about multi-optimal points
HI lily, for the colouring of individual points you can set the colour aesthetic. The ID is numeric so ggplot applies a colour scale. If we cast ID to a factor we get the appropriate colouring. test_df <- data.frame(ID = 1:20, v1 = rnorm(20), v2 = rnorm(20), v3 = rnorm(20)) ggplot(data=test_df, aes(x=v1,y=v2, colour = as.factor(ID))) + geom_point()+ theme_bw()+ xlab('Variable 1')+
2017 Aug 26
1
about multi-optimal points
Hi Ulrik, Thanks for your suggestion, but it was not what I meant. I tried to use the rPref package but just got a very small sample and felt clueless. On Sat, Aug 26, 2017 at 12:37 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote: > HI lily, > > for the colouring of individual points you can set the colour aesthetic. > The ID is numeric so ggplot applies a colour scale.
2000 Feb 14
2
par(fig) problem
hello R-users, I'd like to plot four graphics on the same page but with different sizes. I've tried to use : par(fig=c(0,0.5,0,0.6)) plot(fig1) par(fig=c(0.5,1,0,0.6)) plot(fig2) etc... but when a figure is plotted, it erase the previous. I've tried to pass 'new=T' to plot function but it's not possible. What can I do ? is it a bug ? I've already reported this a 2 or
2017 Jun 18
2
About error bars on barplots
Hi R users, I have a question about adding uncertainty bars to stacked bar plots. DF: year A B C Amin Amax Bmin Bmax Cmin Cmax 2009 40 45 15 30 61 23 56 14 17 2010 36 41 23 26 54 22 51 22 24 I use the code below: DF.refm = melt(subset(DF[,c(1:4)]),id.vars='year',variable_name='Legend') fig1 =
2009 Feb 02
2
Sweave
I'm trying to (re)learn Sweave and run into some problems. I use now ubuntu (8.10), emacs + ess. Slowly getting upto speed on ess. I have a complete (hopefully) .Rnw file, but the resulting .tex will not compile. The file does not contain anything exotic, but it produces pdf figures, and that is where the problems come: library(tools) > Sweave("varioCoo.Rnw") Writing to file
2017 Jun 18
0
[FORGED] About error bars on barplots
On 18/06/17 12:10, lily li wrote: > Hi R users, > > I have a question about adding uncertainty bars to stacked bar plots. > > DF: > year A B C Amin Amax Bmin Bmax Cmin Cmax > 2009 40 45 15 30 61 23 56 14 17 > 2010 36 41 23 26 54 22 51 22 24 > > I use the code below: > >
2017 Nov 05
2
Help in R
R can have a bit of a learning curve... There are several ways to achieve your goal - depending on what you want: test_df <- data.frame(Movie = letters, some.value = rnorm(26)) test_df$Movie[1:10] test_df$Movie[sample(c(1:26), 10)] test_df[sample(c(1:26), 10), ] Do read a tutorial or two on R - "Introduction to R" as suggested by David or something else - so you can explain the
2017 Nov 05
0
Help in R
Hello, Also tail(test_df$Movie, 10) Hope this helps, Rui Barradas Em 05-11-2017 19:18, Ulrik Stervbo escreveu: > R can have a bit of a learning curve... There are several ways to achieve > your goal - depending on what you want: > > test_df <- data.frame(Movie = letters, some.value = rnorm(26)) > > test_df$Movie[1:10] > > test_df$Movie[sample(c(1:26), 10)] > >
2017 Jun 16
2
point size
Hi all; I am running the following ggplot codes. Runs well. However, I need to reflect the numeric values of the log10_P to the point size in the graph. Your help highly appreciated, Regards, Greg p <- ggplot(mydata, aes(x = X, y = log10_P)) + theme_bw() +theme(panel.border=element_blank()) + theme(legend.position="top", axis.text=element_text(size = 8)) (p1 <- p +
2024 Feb 05
2
ggarrange & legend
Dear John Kane Dear R community Here my working example 1. Example that is working with legend=?top?. However, as mentioned, the legend is in the middle of the top axis. mylist<-list(p1, p2) dev.new(width=28, height=18) fig1<- ggarrange(plotlist=mylist, common.legend = TRUE, legend="top", labels = c("(A)", "(B)"), font.label = list(size = 18, color =
2013 Mar 06
6
Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?
Hi, # For publications, I am not allowed to repeat the axes. I have tried to remove the axes using: # yaxt="n", but it did not work. I have not understood how to do this in ggplot2. Can you help me? # I also do not want loads of space between the graphs (see below script with Dummy Data). # If I could make it look like the examples on the (nice) examples page: #
2017 Jun 16
0
point size
You could add size = log10_P to the aes() inside geom_point(). Untested code below. See also http://ggplot2.tidyverse.org/reference/geom_point.html ggplot(mydata, aes(x = X, y = log10_P)) + theme_bw() + theme(panel.border=element_blank(), legend.position="top", axis.text=element_text(size = 8)) + geom_point(aes(color = Traits, size = log10_P)) Jean On Fri, Jun 16, 2017 at
2011 Apr 12
1
How to set the dimension of a matrix correctly?
Hi all, I use kriging to interpolate the precipitation from stations, but the map of this results show lots of stripes. (please see the attachment)I think there's something wrong with the setting of the dimension of this matrix, however, I have no idea how to know or test to see if this setting is correct or not.I've tried to switch the latitude and longitude, but still got the same
2008 Oct 13
1
MiKTEX-texi2dvi
Sorry, I forgot to include a reproducible example on my last e-mail but here it is: Since the file is large to be included here: The path to the foo.Rnw examples is: www.stat.umn.edu/~charlie/Sweave/foo.Rnw and is suppossed to produce a pdf like this one: http://www.stat.umn.edu/~charlie/Sweave/foo.pdf I have downloaded MiKTEX but I don't know how to make it work. Sweave and Stangle seem to
2023 Aug 02
2
Choosing colours for lines in ggplot2
Hello - I am trying to plot flows in a number of rivers within the same plot, and need to colour the lines differently, using a colour-blind palette. Code beneath works but has colours assigned by the program I have made some simple dummy data: ## code 1 cb8<- c("#000000", "#E69F00", "#56B4E9", "#009E73","#F0E442", "#0072B2",
2008 Sep 10
1
ggplot2: edge outlines on points
The graphic design elements in ggplot2 are so well done for color graphics. Thank you! For BW publication graphs, there are a few options I would like to be able to tweak, but can't seem to find the grob handles necessary OR the right plotting strategy. Here's one problem I've been puzzling over: Q> How do you plot points with a grey fill and a black outline around the
2017 Nov 05
0
Help in R
> On Nov 5, 2017, at 9:28 AM, Ahsan Zahir via R-help <r-help at r-project.org> wrote: > > > Hey, > > I am a beginner in R. > > How do I read last 10 values from column- Movie, from a dataset? Some questions are so simple that they strongly suggest no prior effort at self-leanrning. In such cases the usual recommendation given at Rhelp is that you read an
2017 Nov 05
2
Help in R
Hey, I am a beginner in R. How do I read last 10 values from column- Movie, from a dataset? Pls help. Sent from my iPhone
2013 Jan 28
1
Adding 95% contours around scatterplot points with ggplot2
Hi all, I have been looking for means of add a contour around some points in a scatterplot as a means of representing the center of density for of the data. I'm imagining something like a 95% confidence estimate drawn around the data. So far I have found some code for drawing polygons around the data. These look nice, but in some cases the polygons are strongly influenced by outlying points.
2017 Oct 09
0
example of geom_contour() with function argument
library(mvtnorm) # you were misusing "require"... only use require if you plan to library(ggplot2) # test the return value and fail gracefully when the package is missing set.seed( 1234 ) xx <- data.frame( rmvt( 100, df = c( 13, 13 ) ) ) xx2 <- expand.grid( X1 = seq( -5, 5, 0.1 ) # all combinations... could be used to fill a matrix , X2 = seq( -5, 5, 0.1 )