Skip to content

plate order in raw_grid #37

@konradbuessow

Description

@konradbuessow

Hello,
a very useful package.
When I make a raw_grid of several plates, the plates are displayed in alphabetical order. I would prefer to show the plates in their original order.

df01 <- data.frame(well = num_to_well(1:96),
                   vals = rnorm(96),
                   plate = "p1")
df02 <- data.frame(well = num_to_well(1:96),
                   vals = rnorm(96),
                   plate = "p2")
df03 <- data.frame(well = num_to_well(1:96),
                   vals = rnorm(96),
                   plate = "p10")
df <- rbind(df01, df02, df03)
raw_grid(data = df$vals,
    well = df$well,
    plate_id = df$plate,
    plate = 96,
ncols = 1)

In this example, the plates will be plotted in the order p1, p10, p2 instead of the orgininal order p1, p2, p10.

unique(df$plate)

[1] "p1" "p2" "p10"

Best Regards,
Konrad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions