From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.help Subject: Re: Plotting in Emacs? Date: Tue, 18 Apr 2023 16:39:46 +0900 Message-ID: References: <87a5z56d0j.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27297"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 18 09:40:32 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pofx2-0006wA-8A for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 Apr 2023 09:40:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pofwT-00044O-Kg; Tue, 18 Apr 2023 03:39:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pofwS-000444-AV for help-gnu-emacs@gnu.org; Tue, 18 Apr 2023 03:39:56 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pofwP-000634-LL for help-gnu-emacs@gnu.org; Tue, 18 Apr 2023 03:39:54 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-63b87d23729so904745b3a.0 for ; Tue, 18 Apr 2023 00:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681803590; x=1684395590; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=b2AISlzrzYFwDB1fIYibrNeyWCH2J4iLm6c8TevlbDw=; b=VELqEOZw+n4DuzH+EzqG/fxEdgZ3QFqgepG3IZBiMGc0L7Ymbzsu37v1WNsMBVeYV/ Y0V6P23wdAeSTcZrDoncOCA5PPCkYLC3x7e6sQo1olb7aUC3nI/5WjipqVgWlwDceBs/ oOODe4qC3gX2NsIs7lOZwvIl9G0eRDbgR8fkHRrUXWzW7hpH3HjQ10SOEeRtwtb0lUOw ngIotfP8Sw3YW4BtwU7ASCnk3Enh0EEC2AfvlgSAYX4RwnnzarKVJQ4N0yetr9jlQxhH ZVLgk3qbuNtfPsd/HGjTD2ksef1KfwfA2VYRepv2KsgNcI4xNnX6P2VvXNIYir2YSq3v qUlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681803590; x=1684395590; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b2AISlzrzYFwDB1fIYibrNeyWCH2J4iLm6c8TevlbDw=; b=OTxRLgTRPBYdN9AgroaeZEX0VQWd+khlz2n4WYcVXGUV0C0CPcrLsMOv8BFhGufgBf BsNP+HcVRogw3MO1PP/4RB2vjssHoeVr7TsNTSn1GSAlxNbpaoN35vaUj7bWjY8GCg3Y M919ddpEMX9Gi/9v+TwX6q/F3fGFZLA9khOgCKfVT8hl0jm9gKLHtWlX6ATM3d/DYn5q Y9f21wgdYWCSJwZSZkzwl3WIOllvmO2ZlIIoDA1b1BMnOB9AI4077cBhetkT5AEvLUN8 cjhQoaph+cPCx6CkAdc5yhm1wddo4OW7vxBuhIv16Xo0tHHiMYTQJ9D7RNqdalNZJx1x eCvA== X-Gm-Message-State: AAQBX9eXKFLnEUTHurOJ9EuefM+cTGhFqXss2R0q9qd1yTg6pwfqrHQx j6o2+HRi7qdmmP/hi4QCG/7oSa8Fcb8= X-Google-Smtp-Source: AKy350aY04dstz3nbR/DBDho0AfD7UYVDpRAnAGk98B1lMzgeTmFMRuNIKNnLw1Xi1eVaKkCHl2YyQ== X-Received: by 2002:a05:6a00:23d3:b0:63b:608a:eeaf with SMTP id g19-20020a056a0023d300b0063b608aeeafmr21139613pfc.14.1681803589671; Tue, 18 Apr 2023 00:39:49 -0700 (PDT) Original-Received: from DreamBook2023.local ([150.46.201.81]) by smtp.gmail.com with ESMTPSA id 16-20020aa79110000000b0062612b97cfdsm8665936pfh.123.2023.04.18.00.39.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 00:39:49 -0700 (PDT) X-Google-Original-From: Tak Kunihiro Original-Cc: tkk@misasa.okayama-u.ac.jp In-Reply-To: <87a5z56d0j.fsf@mbork.pl> (Marcin Borkowski's message of "Tue, 18 Apr 2023 06:16:28 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=homeros.misasa@gmail.com; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143297 Archived-At: I suggest to use org-babel with R. 1. Install R. 2. Create a file `weight.org'. 3. Paste following lines and save. 4. M-x org-babel-execute-buffer I spent significant time on this system. On this system, debug is hard. Thus I do not suggest to do something complicated more than weight chart using org-babel with R. #+tblname: orgtbl0 | rownames | col1 | col2 | |----------+------+------| | day 1 | 1 | 60 | | day 2 | 2 | 59 | | day 3 | 3 | 58 | | day 4 | 4 | 57 | | day 5 | 5 | 58 | #+header: :var dframe=orgtbl0 :rownames yes :colnames yes #+header: :file plot.png #+begin_src R :results graphics file :exports results xx <- dframe[,1] yy <- dframe[,2] plot(xx,yy) #+end_src