Visit the Project MOSAIC github page for more information about this package and its development.
Questions tagged [r-mosaic]
28 questions
14
votes
3 answers
Can I have R vignette with a pre-compiled PDF with manual index.html show up the vignette list?
I want to include a pre-compiled PDF as a vignette in a R package. The PDF is not generated via Sweave. Without a .Rnw to process, there is no \VignetteIndexEntry to cause the usual automatic generation of index.html and Meta/vignette.rds.
I…

kmm
- 6,045
- 7
- 43
- 53
5
votes
1 answer
calling knitr within a function
I have been using knitr, R markdown, and pandoc to create beamer presentations/lectures for a course I'll be teaching in the fall. I've written a short R script to automate the process (analogous to a `make' file), which involves:
knitting a .Rmd…

ECOSTATS
- 140
- 6
3
votes
1 answer
slice_plot() could not find function error
I'm following the book "Computer-age Calculus with R" but cannot run the function slice_plot( which is the first one used for graphing functions). The library mosaic, mosaicCalc and mosaicModel are installed. I don't know what I'm missing.
this is…

agustin
- 95
- 6
2
votes
2 answers
What does this error mean when I try and install the Mosaic package in R?
When I try and install the mosaic package in R studio, I get the following messages:
> install.packages('mosaic', dependencies = TRUE)
Warning in install.packages :
dependencies ‘latticeExtra’, ‘fastR’ are not available
also installing the…

ebstra
- 21
- 2
2
votes
1 answer
How to tell mosaic (mosaic plot, R, VCD package) to always print the p value even when using residual shading?
When I make a mosaic plot with default shading shade=T the p-value displays under the legend
mosaic(~ gear + carb, data = mtcars, shade=T)
When I instead use Friendly2 shading, I don't get the p-value.
mosaic(~ gear + carb, data = mtcars,…

abalter
- 9,663
- 17
- 90
- 145
1
vote
0 answers
Histogram in R with groups using Lattice/Mosaic?
I am trying to make a histogram with two groups: one where (x<60 || x>100), and one where that condition is false.
Basically like this:
update 2023.08.03 - - - - - - -
This code is exactly what I want, but the color seems to be leaking between the…

isabelle-smith
- 11
- 2
1
vote
0 answers
R does not count greater than or equal correctly with randomized data
I'm teaching a unit on simulation based inference (single proportion test) using the mosaic package in R, and I'm having trouble getting R to count the number of simulations in which the simulated proportion is greater than or equal to the observed…

CarneSeca
- 61
- 4
1
vote
3 answers
Does the new update of mosaic (1.8.3) not work on mac?
I notice that the mosaic package was updated a few days ago (1.8.3). Since then, I keep getting an error message that mosaic can't load.
> library(mosaic)
Error: package or namespace load failed for ‘mosaic’:
object ‘compare’ is not…

user15053575
- 11
- 1
1
vote
1 answer
what does ""fun" is missing" error mean from mosaic() in [r] raster package?
I am trying to mosaic a (subset of a) list of rasters in [r] using mosaic() from the raster package.
I am basing my code on posts such as:
R: Raster mosaic from list of rasters?
I have tried both of these methods below,…

ali
- 29
- 1
- 7
1
vote
1 answer
Rotating y axis labels with mosaic plots WITHOUT overlap
This question is extremely similar to this one yet from another point of view which has not been responded.
Following the proposed code, I am able to generate mosaic plots and rotate the labels so that they are legible. The problem comes when (it…

boski
- 2,437
- 1
- 14
- 30
1
vote
0 answers
Why is RStudio giving an error when using plotFun from the Mosaic package?
My students are using the Mosaic package for RStudio, and one of them is not able to use the function plotFun. Every time she tries to use it, she gets the same error. For example,
> plotFun(x+2~x)
Error in as.data.frame.default(x[[i]], optional =…

regfish7
- 11
- 3
1
vote
1 answer
Two tails in distribution plots
I'm learning statistics and R using the mosaic package, amongst others. For a two tailed test it would be useful if I could see(and get the results) from distribution functions without having to multiply by 2.
Is there any way do to this in the…

stapperen
- 137
- 1
- 9
1
vote
0 answers
Mosaic fails when reading rasters from disc but not from memory
I ran into a weird issue when trying to make a mosaic from several hundred rasters. The satellite imagery I'm using is not perfectly aligned or shares the exact same resolution, so I followed the steps found here to resample my rasters and then…

arredond
- 569
- 6
- 8
1
vote
0 answers
Using antiD function for variance of gamma distribution
This is my first post here and I hope I'll follow all the rules of the community.
I'm trying to calculate variance of gamma distribution with shape parameter 2 and scale parameter 3 in R using function antiD from mosaic package. The R code I use is…

Georgiy Syunyaev
- 11
- 1
0
votes
3 answers
ERROR IN MOSAICING MULTI BAND RASTER IN R
I am trying to mosaic multiple multi band datasets into a single large multi band raster in R.I tried to do it with this code but it returns a single band image.
library(sp)
library(raster)
library(rgdal) …