Posts by Jean Karlos • 646 points
30 posts
-
0
votes1
answer50
viewsQ: Is there any function in R, whose return is identical to the return of excel’s SEERRO() function?
I am trying to generate a general function, which runs several regression models. The problem is that when a model gives error, the main function stops. I would like to use a parole that in case of…
-
0
votes1
answer29
viewsQ: Problems with predictions using Predict.Gam() and geom_smooth(method="Gam")
Hello, I’m having trouble reproducing the predicted values, using ggplot()+geom_smooth(method="gam"), when I run the command for the graph, it plots a line of prediction, y~s(x,bs="cs") that I can’t…
-
0
votes1
answer46
viewsQ: Time series, how to eliminate gaps between missing periods in ggplot2?
I need to present climate data during an evaluation period, but the time lapses, as observed in Figure 1, using the data (exe2) and the script (1). Naturally the ggplot plot the x-axis as continuous…
-
1
votes1
answer27
viewsQ: How to plot expressions within facet_grid()?
I’m having trouble plotting two distinct expressions: expression 1: "RN (MJ m"^2~"d"^-1~")" expression 2: "ET"[0]~~" (mm"^-1*" m"^2*" )" inside: ggplot()+facet_grid(labeller = label_bquote()…
-
1
votes1
answer25
viewsQ: Problem using spread()
Hi, how are you? I’m having trouble using the function spread(): it shows error and does not pop. dados<-structure(list(V1 = structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
-
0
votes0
answers30
viewsQ: Problems with battery overflow using ifelse function
Hello, all right? I’m having trouble generating a function based on ifelse(), because there is a battery burst above 49 conditions. I tend to calculate averages every 5 me. for this I need to use…
rasked Jean Karlos 646 -
3
votes0
answers45
viewsQ: Problems with split captions in ggplot2
Hello, I’d like your help on subtitles using the ggplot2. I want to extract a caption to use in another graphic that uses plot_grid, but I don’t know why, but the same code works (Figure 1) and…
-
2
votes1
answer58
viewsQ: Problems with sum() function inside summarise using plyr and tidyverse!
Hello, good afternoon! I’m finding it difficult to use tidyverse, to perform a stacking function + summarise(soma=sum(value)) + pop =…
-
1
votes1
answer63
viewsQ: How to put a delay inside a function in R?
Hello! I would like to put a delay within a function that I am creating to join N-graphics. I realized that in some cases, my function does not expect the eval(parse(text=paste())) generate all…
-
3
votes2
answers294
viewsQ: How to plot distinct regression models using the ggplot2 + ggpmisc or gridExtra packages?
Hello! I have some difficulty generating graphs with different regression models (quadratic, linear) (FIGURE 1), it is observed that the graphics are loose ("free" scales) when using the…
-
0
votes1
answer152
viewsQ: Problem with key in ggplot, using double axis y + geom_line()+geom_point() x geom_bar()
Hello, I have another problem regarding the presentation of legend, in this case, using axis y double (ggplot::scale_y_continuous::sec_axis), and geom_line()+geom_point() x geom_bar(), as shown in…
-
3
votes1
answer72
viewsQ: Problem with key in ggplot, using double axis y
I would like a help to solve this problem. I would like the caption to present dotted lines (linetype), dotted (shape) and colors (colour) equal to the graph, but this graph has a double axis for y,…
-
1
votes0
answers32
viewsQ: How to edit ylab2 in doubleYScale?
Hello, I need to edit ylab2, within the latticeExtra::doubleYScale. As you can see in the image, the axes captions, they’re different sizes, I need them to be cex=1.4. follows the data:…
rasked Jean Karlos 646 -
1
votes1
answer115
viewsQ: How to proceed non-linear regression by the mitscherlich model?
Hello, good afternoon! need to perform a nonlinear regression analysis nls(), and suggested me the mitscherlich model: I don’t know how to accomplish, I’d like your help! follows the example of the…
-
1
votes1
answer581
viewsQ: How to add lines in a data.frame and or table in shinyserver?
Hello, good night, good night! I’m trying to sort some things out by shiny, but I ran into a problem, I need to create a data.frame, where I am able to add lines of information, without being doing…
-
1
votes0
answers36
viewsQ: Problems in UI interaction with conditioning
Hello, good morning! I’m having trouble calculating soil variables. the code keeps saying: argument is of length zero. The control has to work as follows: 1 select the crop, in the tab "Culture"…
-
1
votes0
answers42
viewsQ: How to load objects in the UI in Shiny
Hello, good morning, good morning! I have no knowledge of the shiny, and I’m having trouble executing some actions. I’d like him to execute one reactive by means of the selectInput, radioButtons,…
-
0
votes1
answer51
viewsQ: How to add or eliminate scatter points on a graph mechanically?
Hello, good morning! I would like to know a routine to add or eliminate scatter points on a graph in a "mechanical" way with the mouse click on the graph! I intend to work with some maps, to mark…
-
0
votes0
answers198
viewsQ: How to import file. KMZ to R
Hello, good afternoon! I would like to import polygons saved in google Earth in formed . KMZ, for R, can even an example (https://gis.stackexchange.com/questions/247413/importing-kml-files-to-r) ,…
-
2
votes1
answer115
viewsQ: Customize x-axis values (abscissas) in the geom_smooth or geom_ribbon functions of the ggplot2 package
Although I already have a similar question the solution presented there scale_x_continuous did not meet me in my problem. Normally for that I would use the function factor in…
-
2
votes2
answers222
viewsQ: reshape2::melt counter function (unstack)
I’m working with data.frame and it is organized in long format. However I would like to put in wide format according to a variable (FAT2) so that the provisions of the columns would remain: AVA,…
-
9
votes1
answer307
viewsQ: How to fill column charts with hachuras using ggplot2
I would like to present column charts using the ggplot2, but I would like them to be filled with hachuras. Because it facilitates the understanding in case of photocopy in black and white! Using the…
-
1
votes3
answers407
viewsA: Delete "X" in Header in R
You may be putting too many arguments in the function read.csv, I had this problem sometimes, when I put the quote argument, and so on, now I usually just write the command like this and it usually…
ranswered Jean Karlos 646 -
0
votes2
answers1901
viewsA: In R, How to calculate the average of a column based on criterion in another column?
When it’s data.frame, and I have to take averages from multiple columns, I use the code colMeans and within the function type: colMeans(dados[dados$coluna1=="A" & dados$coluna2=="0.01",])…
-
1
votes2
answers240
viewsA: Problems with the merge function
I managed to solve using the functions rbind and cbind combined with the functions eval(parse(text=paste:…
-
1
votes2
answers240
viewsQ: Problems with the merge function
I’m having trouble with the job merge out of nowhere she stopped "Merger" the date frames.. It seems she instead of using say the cbind, she’s using rbind and what is worst triple echo (each=3).…
-
3
votes1
answer375
viewsQ: How to define initial kicks for nls function for potential regression model?
I would like to know how to define the initial "kicks" to use the power nonlinear regression model. I am working with estimation of data, testing various regression models, even if there is no…
rasked Jean Karlos 646 -
0
votes1
answer231
viewsQ: How to install Ebimage package for version 3.3.0 and 3.3.1 of R?
First, I make it clear that I have already downloaded the version of both 3.3.0 and 3.3.1 of CRAN, normally, and uninstalled all previous versions, I have also used the commands:…
-
3
votes1
answer240
viewsQ: Linear regressions in IHD with subdivided plot
Hello, good afternoon! would you like to know, how to perform a linear regression in dic with subdivided portion, detail I need the "Betas", because I intend to use the answer to predict a curve!…
-
6
votes2
answers1588
viewsQ: How do I place the inverted (decreasing) Y-axis in the R?
I’m trying to present some graphs on uniformity coefficient, but normally in this type of graph, the Y-axis is organized in descending order, from 100 to 0. I would like to know how do I perform…