how to draw 3d histogram with errorbar using R
0
0
Entering edit mode
2.6 years ago
szp770 ▴ 10

Hi, I have a dataset of the gene expression after different drug treatment in different hours, each treatment has 6 values. I want to plot a 3d histogram using R. I know I can use some pachages, but they may not have errorbar function. How could I do that? Thanks!

histogram errorbar 3D R • 1.1k views
ADD COMMENT
0
Entering edit mode

Can you provide an example figure of what you want?

ADD REPLY
0
Entering edit mode

enter image description here

such plot with error bar in each histogram

ADD REPLY
0
Entering edit mode

A 3D plot may not be the best choice, when I reviewed the example figure below, it is hard to interpret. Error bars on top of that would be even harder. Would it be possible to make a series of subplots for a figure for each individual treatment for your purposes? That would make it more readable and should be easier to do if you use ggplot with a data frame (you can colour different treatments using a treatment column).

ADD REPLY
0
Entering edit mode

As noted, interpretation would be difficult. A multicolumn 2D bar chart may be preferable, especially if you want error bars, e.g.: https://stackoverflow.com/a/65923405/19410

ADD REPLY

Login before adding your answer.

Traffic: 2415 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6