[R] Plot_ly bar plots - bars span sevral x values when there are missing values.

2021-03-08 Thread nevil amos
I need to plot a number of bar charts as part of a shiny app. I am using ploty ly x and y values are both numeric x being consecutive integer values. there are often missing values in the data I wish to plot - each plot needs to have a fixed x range. When there are more than a few missing

Re: [R] Gradient plots in ggplot2

2021-03-08 Thread PIKAL Petr
Hi Phillip. You could try some transformations of your data. Either directly in scale_fill_gradient or in original data. log transition would be OK but not with negative data. You could play with some transitions from scales package. I think that you could also use rescaler function, but I do not

Re: [R] Gradient plots in ggplot2

2021-03-08 Thread Jeff Newmiller
Perhaps scale_fill_gradientn() would be useful. On March 8, 2021 8:05:52 PM PST, p...@philipsmith.ca wrote: >I am having trouble with a gradient fill application in ggplot2, caused > >by outlier values. In my reprex, most of the values are between 2 and >-2, but there are two outliers, 10 and

[R] Gradient plots in ggplot2

2021-03-08 Thread phil
I am having trouble with a gradient fill application in ggplot2, caused by outlier values. In my reprex, most of the values are between 2 and -2, but there are two outliers, 10 and -15. The outliers stand out well, which is good, but all the other numbers show almost no colour variation. I

Re: [ESS] Polymode keymap error

2021-03-08 Thread Tyler Smith via ESS-help
Can you show us your Emacs config, or at least the use-package expression you use for poly-mode? Best, Tyler John Haman via ESS-help writes: I'm having an issue with Poly-R or poly-markdown. When I start up my Emacs installation, I get a strange error about a keymap: Error (use-package):

[ESS] Polymode keymap error

2021-03-08 Thread John Haman via ESS-help
I'm having an issue with Poly-R or poly-markdown. When I start up my Emacs installation, I get a strange error about a keymap: Error (use-package): poly-markdown/:catch: Symbol’s value as variable is void: keymap Disable showing Disable logging I have no issues loading polymode, but either

Re: [R] hist from a list

2021-03-08 Thread David Winsemius
On 8/3/20 11:48 AM, Pedro páramo wrote: Hi Rasmus, Josh and Rui, First of all many thanks in advance about your help. The first thig is sometimes you say " you are posting in HTML and that makes the post unreadable as this is a plain text list" how can I put the code in the correct way, not

Re: [R] read_csv not recognized

2021-03-08 Thread Carlos Gonzalez
Thank you! The problem was that tidyverse has not been loaded correctly. Sorry! El lun, 8 de mar. de 2021 a la(s) 18:24, Eric Berger (ericjber...@gmail.com) escribió: > Hi Carlos, > That is strange. The function read_csv is in the readr package. > You could try > > library(readr) >

Re: [R] read_csv not recognized

2021-03-08 Thread Eric Berger
Hi Carlos, That is strange. The function read_csv is in the readr package. You could try library(readr) readr::read_csv(etc) Let us know what happens. Eric On Mon, Mar 8, 2021 at 3:57 PM Hasan Diwan wrote: > function (file, col_names = TRUE, col_types = NULL, locale = > default_locale(), >

Re: [R] read_csv not recognized

2021-03-08 Thread Hasan Diwan
function (file, col_names = TRUE, col_types = NULL, locale = default_locale(), na = c("", "NA"), quoted_na = TRUE, quote = "\"", comment = "", trim_ws = TRUE, skip = 0, n_max = Inf, guess_max = min(1000, n_max), progress = show_progress(), skip_empty_rows = TRUE) { tokenizer <-

[R] read_csv not recognized

2021-03-08 Thread Carlos Gonzalez
Hi everybody, I've load tidyverse: library(tidyverse) and then try to use the function read_csv() but it didn't recognize it. Thanks! -- Saludos / Regards Carlos A. Gonzalez Mobile +598 94 234 653 cag...@gmail.com [[alternative HTML version deleted]]

Re: [ESS] Trailing slash deleted from find-file prompt

2021-03-08 Thread Brendan.Halpin via ESS-help
I can fix this by changing ess-synchronize-dirs in ess-inf.el: (defun ess-synchronize-dirs () "Set Emacs' current directory to be the same as the subprocess directory. To be used in `ess-idle-timer-functions'." (when (and ess-can-eval-in-background ess-getwd-command

Re: [R] quantile from quantile table calculation without original data

2021-03-08 Thread PIKAL Petr
Hallo David, Abby and Bert Thank you for your solutions. In the meantime I found package rriskDistributions, which was able to calculate values for lognormal distribution from quantiles. Abby > 1-psolution [1] 9.980823e-06 David > plnorm(0.1, -.7020649, .4678656) [1] 0.0003120744

Re: [R] Split Dataframe into several

2021-03-08 Thread Rasmus Liland
On 2021-03-08 17:14 +0330, javad bayat wrote: > Dear Rasmus; > Many thanks. It works for me. > Sincerely yours Great :) signature.asc Description: PGP signature __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Split Dataframe into several

2021-03-08 Thread Rasmus Liland
Dear Javad, data <- "Date Cases Country 2020-12-14 746 Country1 2020-12-15 324 Country1 2020-12-15 1 Country3 2020-12-13 298 Country2" data <- read.table(text=data, header=T) x <- reshape( data=data, timevar =

[R] Split Dataframe into several

2021-03-08 Thread javad bayat
Dear R users; Hi. I have a problem with splitting dataframe into several. I have a large dataframe (Length of 61000). It has 4 Columns as below: " Date Cases Country 12020-12-14 746Country1 22020-12-15 324

Re: [R] quantile from quantile table calculation without original data

2021-03-08 Thread Jeff Newmiller
I am aware of that... I have my own functions for this purpose that use splinefun. But if you are trying to also do other aspects of probability distribution calculations, it looked like using fBasics would be easier than re-inventing the wheel. I could be wrong, though, since I haven't used

Re: [R] quantile from quantile table calculation without original data

2021-03-08 Thread Martin Maechler
> Jeff Newmiller > on Fri, 05 Mar 2021 10:09:41 -0800 writes: > Your example could probably be resolved with approx. If > you want a more robust solution, it looks like the fBasics > package can do spline interpolation. base R's spline package does spline interpolation