Swarchal / platetools

An R package for plotting microtitre plates
Other
54 stars 15 forks source link

Error: Column `fill` must be a 1d atomic vector or a list #3

Open NiklasTR opened 6 years ago

NiklasTR commented 6 years ago

Hi! I recently installed platetools from CRAN and ran a few examples. The first code chunks give the expected result. However, I ran into problems using the raw_grid function to plot some screening data. Here is a test example from your vignette:

This is the input for chunk 4 in vignette.ipynb:

vals <- c(rnorm(96), rnorm(96, mean = 10)) wells <- rep(num_to_well(1:96), 2) plate_id <- rep(c("plate_1", "plate_2"), each = 96)

z_grid(data = vals, well = wells, plate_id = plate_id) + scale_fill_distiller(type = "div") + ggtitle("Two very different plates")

I get this error: Error: Column fill must be a 1d atomic vector or a list

Is this a dplyr problem? I attached my session info. sessioninfo.txt

Swarchal commented 6 years ago

Thanks for the report.

Annoyingly it seems to work fine on my computer. I'll have a proper look at it later.

NiklasTR commented 6 years ago

Thank you for looking into this!